compound-supply-examples | Code examples for supplying Ethereum assets | Cryptocurrency library
kandi X-RAY | compound-supply-examples Summary
kandi X-RAY | compound-supply-examples Summary
Compound is an open-source, decentralized autonomous protocol built for developers, to unlock a universe of new financial applications. Users can earn interest on their crypto assets and borrow crypto assets. Learn more on the website:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Speeds a new address to the given address
- supports a compound contract
- supports the enclosed address to the end of the chain
- Requests redeemor tokens from the blockchain .
- Transfer an address to the receiver .
- Rewrite transactions to redeem transaction .
- Get current exchange rate
- Get the balance of an asset
- Get the balance of the given account .
- Main entry point
compound-supply-examples Key Features
compound-supply-examples Examples and Code Snippets
Community Discussions
Trending Discussions on compound-supply-examples
QUESTION
I came from Java OOP background and understand interfaces.
Currently working on a simple budgeting app (https://github.com/compound-developers/compound-supply-examples) that takes ETH or Stablecoin and put in in Compound and earn interest.
My confusion is how Solidity Interfaces are used. I came from OOP (Java) background and very familiar with interfaces.
So in this code(MyContracts.sol
) you can see that there is a mint()
function in the interface. However, there is no implementation for it but you can see that it's used here uint mintResult = cToken.mint(_numTokensToSupply);
without any implementation.
Can anyone shade some lights on how interface functions are used without implementations ? When you call mint in this case, which code is actually being executed ?
...ANSWER
Answered 2020-Nov-08 at 03:30I believe I got the main issue that was confusing to me.
So if you come from OOP background this what we know about interfaces:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install compound-supply-examples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page