Comment on page
Contracts overview
( Updated 2021/ 3 / 1 )
- Diagram is based on live deployed
- Belt.fi have two contract group ( Vaults and AMM with Yield )
-
.png?alt=media)
.png?alt=media)
- BELT Token
- Description
- BEP-20 BELT token contract
- MasterBelt
- Description
- Mint BELT token
- Manages pools and Distribute BELT token to pools according to their points allocated
- Calculating pendingBELT for claim
- BeltStrategies
- Description
- All of the strategy codes that BELT finance is running to earn interests for the assets deposited
- BeltSingleStrategyToken
- Description
- A SingleStrategyToken that uses one of the BeltStrategies
- A user will receive shares by depositing assets to the SingleStrategyToken contract.
- The shares returned will be proportional to the amount the user deposited
- A user will receive original assets by turning in shares to the SingleStrategyToken contract
- The assets returned will be proportional to the shares returned
- The difference between SingleStrategyToken, SingleStrategyToken2:the first one has some interval in moving assets to the strategy(before that the assets remains in the SingleStrategyToken contract), whereas the second one instantly moves every assets to the strategy.
- BeltMultiStrategyToken
- Description
- A MultiStrategyToken contract has multiple strategies
- Every one of MultiStrategyToken's strategy is a SingleStrategyToken contract.
- A user will receive shares by depositing assets to the MultiStrategyToken contract.
- The shares returned will be proportional to the amount the user deposited
- A user will receive original assets by turning in shares to the MultiStrategyToken contract
- The assets returned will be proportional to the shares returned
- Each strategy used in the MultiStrategyToken has a ratio value assigned to it and there are ideal balances for each strategy calculated based on its ratio value assigned
- When a user deposits, the assets are moved to a strategy most off from its ideal balance but only accounts strategies whose balances are smaller than its ideal balance (a.k.a most insufficient strategy)
- When a user withdraws(turns in shares), the assets are withdrawn from1. a strategy most off from its ideal balance and whose balances are greater than its ideal balance (a.k.a most sufficient strategy)2. if the strategy from step 1. did not suffice then a strategy that has the most balance irrelevant from its ratio (a.k.a most locked strategy)3. if the strategy from step 2. did not suffice, the transaction fails.
- BeltLPTokenv2
- Description
- The LP token of 4belt stable swap
- StableSwapBv2
- Description
- A stable swap between pool member tokens
- Each member in the stable swap is a USD pegged multi strategy token
- DepositBv2
- Description
- Depositor for the 4belt stable swap
- Takes in USD pegged assets and returns a 4belt LP token to the user
- VaultBPool
- BeltLPToken vaults
- Description
- Vaults of BeltLPToken
- CakeLPToken vaults
- Description
- Vaults of CakeLPToken
Last modified 8mo ago