0% found this document useful (0 votes)
17 views24 pages

Defi NFT 1

The document outlines the concepts and development strategies for Decentralized Finance (DeFi) and Non-Fungible Tokens (NFTs), detailing various functionalities such as lending, borrowing, trading, and farming. It also discusses the technical architecture, including blockchain integration and smart contracts, as well as user verification and auction mechanisms for NFTs. Additionally, it provides a timeline and cost estimates for implementing various features in both web and mobile applications.

Uploaded by

caophuong7989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views24 pages

Defi NFT 1

The document outlines the concepts and development strategies for Decentralized Finance (DeFi) and Non-Fungible Tokens (NFTs), detailing various functionalities such as lending, borrowing, trading, and farming. It also discusses the technical architecture, including blockchain integration and smart contracts, as well as user verification and auction mechanisms for NFTs. Additionally, it provides a timeline and cost estimates for implementing various features in both web and mobile applications.

Uploaded by

caophuong7989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Defi - NFT

Understandings & How To Dev


AnhPham - 9/2021
Agenda
Defi and relateds NFT
Defi - Handle all logics ● SignIn/Up
● Dex exchanging ● Cover market api
● Margin trading ● Create NFT
● Swap
● Flashloan ● Exchange NFT
● Pooling ● NFT farming
● Saving
● Lending & Borrowing
● Farming & IFO
● Insurance
● Derivaties
Standards
Defi - Handle all logics
Web Android/
Clients iOS

Others
Back 3rd
SMS
Database API tools
End

Smart Lend & Dex &


Contract Farm Flashloan Save Derivaties ....
Borrow Pool

Core
Celo Solana Ethereum ...
Block-
chain
% APY
Return aToken

Lend & % APY


Borrow Return cToken
(exchage to
stable coin)

Setup xToken
Calculate rate: from coin value to xToken
You Own
State amount money large enough
Stable Coin ?
Add insurance fee to contract
Return xToken
Your own logic Ready for exchange coin
Ready for windraw
Forward coin to other MARKET to gain interest
% APY
Order Book Models
Create some BrokerBot to negotiate Buyers & Seller

BOTbroker Models
Dex Deposit via wallet
Book order (coin/cash)
Build AMM calculation
Try to find suitbable traders
Execute order
Strategies
Forward to other market, OR
X Create your own strategy
● logic
○ time to save
Saving ○ real saving from commerce bank, national
(exchage to bank range saving rate
stable coin) ○ rates from other coin markets
○ spend coins to pool to get interest
○ convert coins to usd to invest
● input: coins
You Own ● output: coins + interest amount
Stable Coin
Return best rate in a period of time
Order Book Models
Create some BrokerBot to negotiate Buyers & Seller

2Layer/Liquid Models (get


Pool Build AMM calculation rate)

X Create LP token to coins added


Ready for recalculate rate (other coins out ) (get
rate)
Forward to other POOLS/ Create your
own POOLS
Auto exchage if rate up/down with market

(build
rate)

Your own logic


HotTrend Strategies
Forward coin to other farm market, OR
Create strategy
● Deposit one and borrow other
X
● Add more to pool get extra LP token
● Add insurance fee to contract
● Staking LP token get W, S RENtoken
Farm ● Convert to invest real estates/shops then return
(exchage to interest
stable coin) ● Convert to invest gold/diamond/usd then return
interest
● Combine strategies

You Own Create your own strategy


Stable Coin ● logic
● input
● output

Return best rate in a period of time


HotTrend Strategies
Forward LPtoken to other farm market, OR
Create strategy
● Deposit LPtoken and farm other
X
● To market to get W, S RENtoken
● Convert to invest real estates/shops then return
interest
Staking ● Convert to invest gold/diamond/usd then return
(exchage to interest
stable coin) ● Combine strategies

Create your own strategy


● logic
You Own ● input
Stable Coin ● output

Return best rate in a period of time


Option Contract
● Trader has RIGHT to execute or not
● Trader has no coin, has a contract to sell/buy
coins in future with coin-owner a specific price at
X any time during the life of the contract

Future Contract
Derivaties ● Trader has RESPONSIBILITY to execute
(exchage to ● Trader has no coin, has a contract to sell/buy
stable coin) coins in future with coin-owner a specific price

Strategies
● Forward to other market, OR
You Own ● Check the Trader liquidity, balance
Stable Coin ● Check coin-owner coins
● Check the rate swap coins each markets
● Get the deposit liquidity from Trader
● Get the deposit coins from coin-owner
● Add insurance fee to contract
● At the time contract expires, execute contract
● Return dToken
Strategies
● Trader wants to loan-&-pay-one-time money that
X he has no deposit
● Check the rate swap coins each markets
● Check the coin type in ORG pool is enough for
contract
Flashloan ● Build interface swaping coins each market
(exchage to ○ Market 1, calculate rate, swap coin X to Y
stable coin) ○ Market 2, calculate rate, swap coin Y to Z
○ Market 3, calculate rate, swap coin Z to X
○ ...
● Build AMM to calculate interest each step of
You Own swap
Stable Coin ● Execute logic
Strategies
● Trader wants to loan & earn money that he has
X some to deposit
● Check the rate swap coins each markets
● Check the coin type in ORG pool is enough for
Margin contract
trade ● Build AMM bot interface swaping coins each market
(exchage to ○ Market 1, calculate rate, swap coin X to Y
stable coin) ○ Market 2, calculate rate, swap coin Y to Z
○ Market 3, calculate rate, swap coin Z to X
○ ...
● Trader chooses to execute
You Own ● Trader chooses other strategies
Stable Coin
Strategies
● Trader has to pay % per amount that he could
X not serve for liquidity
● Trader has RESPONSIBILITY to join with fee
and % gain from trading from activities: lend &
Insurance borrow, flashloan, margin trading...
● Set % rate for remaining trader liquidity
(exchage to
stable coin) ● Get rate from other markets

You Own
Stable Coin
Why Celo or Solana
- Celo, a Geth codebased on ETH chain, focus on mobile, consensus PoS.
Rate: 1,5 k - 3k trans/s, costs $0.0003

- Solana, a Rust codebased chain, consensus PoH. Rate: 30 k- 40k trans/s,


costs $0.00025
Standards
NFT - Handle all logics
Web Android/
Clients iOS

Others
Back 3rd
SMS
Database API tools
End

Smart Create Get others


Contract Exchange Farm ....
NFT NFT

... ... ...


Core
Celo Solana Ethereum
Block-
chain
User verified logic
● Validate via sms, gmail
● Fee to created
● User chain address

Indentical logic
● Build rules (conform Country Law)
Create ● (MachineLearning) Classify data
NFT image/text/audio, be adapt with rules
● (MachineLearning) Identify data to be identical

Blockchainized logic
● Block the data
● Set owner the data (BSC, OKEx, IoTeX, Polygon, and HEC)
● Set price

Send to other Markets logic


● Send to other protocols
● Get rate from other markets
● ReSet price
Auction logic
● Send to other markets, or
● Build some AMMbot
● Set time auction, get traders books/orders
Auction/ ● Merge orders
Exchage ● Execute auction
● Auction done, set the nft to buyer, set coins to
seller, set commision to system

Blockchainized logic
● Block the data
● Set owner the data
● Set price

Send to other Markets logic


● Send to other protocols
● Get rate from other markets
● ReSet price
(BSC, OKEx, IoTeX, Polygon, and HEC)
Farming logic
● Send to other markets, or
Create strategy
● Deposit one and borrow other
NFT ● Add more to pool get extra LP token
farming ● Add insurance fee to contract
● Staking LP token get W, S RENtoken
● Convert to invest real estates/shops then return
interest
● Convert to invest gold/diamond/usd then return
interest
● Combine strategies

Blockchainized logic
● Block the data
● Set owner the data
● Set price
Some Demo in Pancake Template
Web interface 1 week $2000

Mobile (each 1 week $2000


Android/iOS)

Authen via SMS 3 days $2000

Lend & Borrow 1 week $3000

Farming 2 weeks $6000

Skating 2 weeks $6000

Exchange coin 1 week $3000


like pancake

Flashloan 1 week $3000

Pooling 2 weeks $6000

Derivaties 2 weeks $6000

Margin trade 2 weeks $6000

Insurance 2 weeks $6000


NFT Web interface 1 week $2000

NFT Mobile (each 1 week $2000


Android/iOS)

Customized list NFT 2 weeks $6000

Create NFT 2 weeks $6000


with BSC, OKEx, IoTeX,
Polygon, and HEC

Exchange NFT 3-5days $3000

(MachineLearning) 3week $10000


Classify data
image/text/audio, be
adapt with rules

(MachineLearning) 2 weeks $6000


Identify data to be
identical

NFT farming 2 weeks $6000

Others... 3-5days $2000 - 3000

You might also like