This function returns false if an account does not have sufficient liquidity to increase its borrow position. A withdraw transaction to borrow that results in the account’s borrow size being less than the baseBorrowMin will revert. Compound III implements a minimum borrow position size which can be found as baseBorrowMin in the protocol configuration. The withdraw method is used to withdraw collateral that is not currently supporting an open borrow. Before supplying an asset to Compound III, the caller must first execute the asset’s ERC-20 approve of the Comet contract.
Supplying Assets to the Compound Protocol
It is for this reason that financial experts commonly suggest the risk management strategy of diversification. Real-life returns are rarely as predictable as these examples. It’s important to remember that these example calculations assume a fixed percentage yearly interest rate. This means total interest of $16,532.98 and a return on investment of 165%. We’ll assume you intend to leave the investment untouched for 20 years.
If the proposal is approved by the community, the proxy will point to the new implementation upon execution. Each time an immutable parameter is set via governance proposal, a new Comet implementation must be deployed by the Comet factory. Compound III is a decentralized protocol that is governed by holders and delegates of COMP. External calls, such as to underlying ERC-20 tokens, may use an arbitrary amount of gas.
- This function sets the maximum amount of an asset that can be supplied to the protocol.
- See the interest rate data visualization notebook on Observable to visualize which interest rate model is currently applied to each market.
- Instead, we advise you to speak to a qualified financial advisor for advice based upon your own circumstances.
- The app.compound.finance interface is open-source, and maintained by the community.
- Interest accrues for the current block, as well as each prior block in which the accrueInterest method was not triggered (no user interacted with the cToken contract).
- This function returns the current balance of a collateral asset for a specified account in the protocol.
Update Liquidation Collateral Factor
The effective annual rate (also known as the annual percentage yield) is the rate of interest that you actually receive on your savings or investment after compounding has been factored in. Simply enter your principal amount, interest rate, compounding frequency and the time period. To illustrate the effect of compounding, let’s take a look at an example chart of an initial $1,000 investment. This compounding effect causes investments to grow faster over time, much like a snowball gaining size as it rolls downhill. Use our free compound interest calculator to evaluate how your savings or investments might grow over time, with or without regular contributions.
Protocol Contracts
This function sets the official contract address of the Compound III protocol pause guardian. This function sets the official contract address of the Compound III protocol Governor for subsequent proposals. It can be viewed at income summary v3-additional-grants.compound-community-licenses.eth when the browser network is set to Ethereum Mainnet.
Setting up an Ethereum Development Environment
You can also see a full list of all deployed contract addresses here. The app.compound.finance interface is open-source, and maintained by the community. As a final note, many of the features in my compound interest calculator have come as a result of user feedback.
Withdraw is also used to borrow the base asset from the protocol if the account has supplied sufficient collateral. If the base asset is supplied resulting in the account having a balance greater than zero, the base asset earns interest based on the current supply rate. Compound III is an EVM compatible protocol that enables supplying of crypto assets as collateral in order to borrow the base asset. An account balance greater than zero indicates the base asset is supplied and a balance less than zero indicates the base asset is borrowed. For instance, if the borrow collateral factor for WBTC is 85%, an account can borrow up to 85% of the USD value of its supplied WBTC in the base asset.
Configurator Implementation
We’ve covered what compound interest is, but how do you make the most of it? Unlike simple interest, which is fixed manufacturing overhead variance analysis calculated only on the principal, compound interest is calculated on both the principal and the accumulated interest. The concept of compound interest, or ‘interest on interest’, is that accumulated interest is added back onto your principal sum, with future interest being calculated on both the original principal and the already-accrued interest. Continue scrolling to learn how compound interest works – and how to make it work for you.👇 Our tool provides both monthly and yearly interest projections, helping you see how compound interest can increase the value of your money as you plan for the future.
What is the effective annual interest rate?
- The gas usage of the protocol functions may fluctuate by market and user.
- In addition to supplying, borrowing, and wrapping, the bulker contract can also transfer collateral within the protocol and claim rewards.
- An account’s initial borrow size must be equal to or greater than this value.
- Compound III is a decentralized protocol that is governed by holders and delegates of COMP.
- The cToken Exchange Rate is scaled by the difference in decimals between the cToken and the underlying asset.
This is an external contract that is not integral to Comet’s function. This is the factory contract capable of producing instances of the Comet implementation/logic contract, and invoked by the Configurator. This pattern allows significant gas savings for users of the protocol by ‘constantizing’ the parameters of the protocol. The configurator deploys implementations of the Comet logic contract according turbotax vs cpa to its configuration. This is a proxy contract for the configurator, which is used to set and update parameters of a Comet proxy contract.
If you are investing your money, rather than saving it in fixed rate accounts, the reality is that returns on investments will vary year on year due to fluctuations in interest rates, market conditions, inflation, and other economic factors. This function returns true if the account passed to it has non-negative liquidity based on the borrow collateral factors. The supply function transfers an asset to the protocol and adds it to the account’s balance. Users can add collateral assets to their account using the supply function.
There is no underlying contract for ETH, so to do this with cETH, set underlyingDecimals to 18. The cToken Exchange Rate is scaled by the difference in decimals between the cToken and the underlying asset. The Compound protocol contracts use a system of exponential math, ExponentialNoError.sol, in order to represent fractional quantities with sufficient precision.
Is Supply Paused
No one interacts with the cEther contract for 3 Ethereum blocks. The Compound protocol has been reviewed & audited by OpenZeppelin and ChainSecurity. They detail the protocol deployment process, construction of new features, and code examples for implementing external apps that depend on Compound III as infrastructure. The following developer guides and code repositories serve as resources for community members building on Compound. It allows accounts to bulk multiple operations into a single transaction.
This function sets the minimum amount of base asset supplied to the protocol in order for accounts to accrue rewards. This function sets the rate at which base asset borrower accounts accrue rewards. This function sets the official contract address of the price feed of the protocol base asset. Interest rates for each market update on any block in which the ratio of borrowed assets to supplied assets in the market has changed.
If the WBTC liquidation factor is 0.9, the user will receive $90 of the base asset when a liquidator triggers an absorption of their account. This function updates the borrow collateral factor for an asset in the protocol. This function returns a boolean indicating whether or not the protocol’s selling of absorbed collateral functionality is presently paused. This function returns a boolean indicating whether or not the protocol supply functionality is presently paused. The more times the interest is compounded within the year, the higher the effective annual interest rate will be.
This function returns a boolean indicating whether or not the protocol withdraw functionality is presently paused. This function returns a boolean indicating whether or not the protocol transfer functionality is presently paused. This address has the power to pause supply, transfer, withdraw, absorb, and buy collateral operations within Compound III.
