DeFi金融NFT質押借貸Dapp系統開發流程以及合約定製功能分析
DeFi
DeFi其實是一種FinTech加上區塊鏈的應用。
FinTech是Financial Technology的縮寫,開發I34-合約I633-部署53I9也叫做金融科技,其應用場景包括以下一些種類:
支付
身分驗證
保險
投資
證券交易所
借貸
以借貸為例,我們看以下示例圖:
可以看到其特點是沒有中間商比如銀行、金融機構等,一切都是以智慧合約為準。當然智慧合約一定會考慮到風險控制等因素,比如一般包括超額質押,強制清算等。
舉個例子,超額質押就是市值100元的物品只能貸給你50元,強制清算就是比如市值100元如果跌到了75元就會自動觸發智慧合約進行清算。
NFT即Non-Fungible Token,也就是非同質化代幣,
目前的兩大NFT作品是CryptoPunk及Bored Ape Yacht Club。 前者是於加密貨幣圈子成名NFT專案,它是一萬個以不同膚色、髮型、鬍子、口紅、眼鏡、帽子等組合而成的頭像,每個Punk的長相都是獨一無二。
2021年5月,9個CryptoPunk在佳士得拍賣,結果以1,700萬美元易手,及後7523號CryptoPunk在蘇富比拍賣,亦以1,175萬美元成交。
NFT Applications
NFT的型別,我們可以分為以下的型別:
藝術品
收藏品
金融
遊戲
音影片
虛實整合
NFT Earning
NFT的盈利模式:
NFT結構
NFT 錨定的是非同質化資產的價值
NFT的一般是json結構:
{ "name": "nft1", "description": "This is the NFT of vincent.", "image": "ipfs://QmUEqqq", "external_url":" }
unction balanceOf(address owner) -> uint256 balance /// @notice Find the owner of an NFT /// @dev NFTs assigned to zero address are considered invalid, and queries /// about them do throw. /// @param _tokenId The identifier for an NFT /// @return The address of the owner of the NFT function ownerOf(uint256 tokenId) -> address owner /// @notice Transfers the ownership of an NFT from one address to another address /// @dev Throws unless msg.sender is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if _from is /// not the current owner. Throws if _to is the zero address. Throws if /// _tokenId is not a valid NFT. When transfer is complete, this function /// checks if _to is a smart contract (code size > 0). If so, it calls /// onERC721Received on _to and throws if the return value is not /// bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")). /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer /// @param data Additional data with no specified format, sent in call to _to function safeTransferFrom(address from, address to, uint256 tokenId) /// @notice Transfers the ownership of an NFT from one address to another address /// @dev This works identically to the other function with an extra data parameter, /// except this function just sets data to “”. /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer function transferFrom(address from, address to, uint256 tokenId) /// @notice Change or reaffirm the approved address for an NFT /// @dev The zero address indicates there is no approved address. /// Throws unless msg.sender is the current NFT owner, or an authorized /// operator of the current owner. /// @param _approved The new approved NFT controller /// @param _tokenId The NFT to approve function approve(address to, uint256 tokenId) /// @notice Enable or disable approval for a third party (“operator”) to manage /// all of msg.sender’s assets /// @dev Emits the ApprovalForAll event. The contract MUST allow /// multiple operators per owner. /// @param _operator Address to add to the set of authorized operators /// @param _approved True if the operator is approved, false to revoke approval function getApproved(uint256 tokenId) -> address operator /// @notice Query if an address is an authorized operator for another address /// @param _owner The address that owns the NFTs /// @param _operator The address that acts on behalf of the owner /// @return True if _operator is an approved operator for _owner, false otherwise function setApprovalForAll(address operator, bool _approved) /// @notice Get the approved address for a single NFT /// @dev Throws if _tokenId is not a valid NFT. /// @param _tokenId The NFT to find the approved address for /// @return The approved address for this NFT, or the zero address if there is none function isApprovedForAll(address owner, address operator) -> bool
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70011332/viewspace-2938028/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- NFT盲盒鑄造質押借貸dapp系統開發合約定製詳情APP
- NFT質押借貸合約系統程式碼開發示例詳情丨DAPP丨defi丨NFTAPP
- DeFi生態借貸合約質押挖礦系統開發案例/DAPP/LPAPP
- NFT鑄造質押借貸dapp系統開發|賦能功能模式定製APP模式
- DAPP/NFT質押借貸系統合約開發技術詳解(程式碼示例)APP
- Defi/DAPP智慧合約質押挖礦系統開發/DeFi應用/NFT/DAPPAPP
- NFT+DeFi質押借貸開發系統搭建技術
- NFT數字藏品質押借貸挖礦dapp系統開發智慧合約詳情APP
- Defi質押挖礦秒U合約系統開發/DAPP/Defi/NFT/idoAPP
- NFT質押借貸開發分析丨質押借貸2.0系統開發詳情丨原始碼丨DAPP丨nft原始碼APP
- NFT質押借貸(馬蹄鏈)系統設計開發分析丨DAPP丨DeFi丨NFTAPP
- DeFi丨NFT質押借貸質押系統模式開發功能技術分析模式
- DeFi/NFT質押借貸持幣生息理財系統合約開發(技術詳情)
- NFT數字藏品質押借貸挖礦dapp系統開發合約技術詳情APP
- Defi借貸質押流動性挖礦系統開發功能丨DAPP丨Defi丨NFT丨IDOAPP
- NFT質押借貸(智慧合約)系統技術開發及程式碼示例
- NFT質押代幣分紅dapp系統開發功能|合約定製案例APP
- DAPP合約質押理財系統開發功能分析APP
- defi預售代幣/系統開發技術/DAPP合約借貸/質押挖礦開發元件技術APP元件
- DeFi/NFT質押借貸(挖礦)系統模式開發及程式碼示例模式
- DAPP智慧合約流動性質押挖礦系統模式開發/DEFI/DAPP/NFT/LPAPP模式
- IDO代幣預售借貸質押系統1開發丨DAPP丨Defi丨NFT丨idoAPP
- DAPP智慧合約系統技術開發一站式服務/DAPP/Defi質押/NFTAPP
- defi質押挖礦代幣分紅dapp系統開發案例智慧合約模式定製APP模式
- DeFi拆分理財雙幣質押dapp系統開發|智慧合約定製方案詳情APP
- DApp質押借貸挖礦系統開發|流動性質押分紅模式定製(原始碼搭建)APP模式原始碼
- defi質押挖礦智慧合約dapp系統開發詳解APP
- DAPP丨NFT丨LP代幣預售開發功能丨LP流動性質押借貸系統合約開發方案APP
- Defi/DAPP/IDO/代幣預售/系統開發/Defi借貸質押分紅技術開發詳情APP
- DAPP質押挖礦開發技術/Defi預售代幣借貸合約/原始碼開發詳情APP原始碼
- dapp/defi/lp/ulab借貸理財質押挖礦系統開發詳情丨ulab借貸理財質押挖礦開發運營版APP
- DAPP智慧合約/系統開發/智慧合約原始碼/DAPP/Defi/NFT/IDOAPP原始碼
- PAXOS/PAXG雙子代幣/DAPP質押系統合約開發/Defi模型APP模型
- Defi 借貸挖礦丨 DAPP 智慧合約模式系統開發技術介紹APP模式
- DeFi/LP/NFT流動性質押借貸系統技術開發丨Python程式碼示例Python
- Dapp鏈上代幣合約質押模式系統開發功能分析丨框架APP模式框架
- Defi/IDO分投趣借貸質押系統開發技術丨Defi分投趣借貸開發模式詳情模式
- IDO/Defi/DAPP/代幣預售借貸質押分紅系統技術開發(元件解析)APP元件