Skip to content

abhi3700/My_Learning_DeFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My_Learning_DeFi

My learning about DeFi

Development

Storage

  • In DeFi smart contracts, the data is stored on-chain for data persistence required for financial computations.
  • But, this can be achieved by either of the two ways:
    1. Minimalistic storage with loops during calculations like average price.
    2. Maximalistic storage with no use of loops during such calculations as the count, & the total amount is also stored.
  • In both the methods there are cons. As a matter of fact, the 2nd method is normally chosen.
  • But, this has led to expensive scenarios like Chainlink paying 100k USD as gas fees per day.
  • In order to avoid this, off-chain storage could be a solution, but it is not secure as the data won't be immutable.
  • Hence, there is a new upcoming solution provided by Arweave Blockchain. This has permanent storage. And fetching data from here is absolute free without any API key requirement. The fee is paid one-time which gives storage for almost 100 years. The data (like price) is stored via Arweave smart contracts.
  • Have a look at how to access the price here.

References

Blogs

Videos

About

My learning about DeFi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published