- $71,250 USDC main award pot
- $3,750 USDC gas optimization award pot
- Join C4 Discord to register
- Submit findings using the C4 form
- Read our guidelines for more details
- Starts May 27, 2022 20:00 UTC
- Ends June 3, 2022 19:59 UTC
NOTE This contest is focused exclusively on the tokenomics aspect of Backd. Another contest was already run for the other parts of the protocol. Some parts of the tokenomics may however require some understanding of the rest of the protocol. We have a high-level description of all the protocol components in the other contest README.
In this document, we give a high-level overview of Backd's tokenomics for participants of the Code4arena contest. We only focus on the contracts within the scope of the contest.
Backd tokenomics consists of several contracts that have for main goal to manage how the BKD token will be distributed to users.
BKD tokens are distributed to the following parties:
- Liquidity providers to Backd liquidity pools
- Backd keepers
- Liquidity providers to whitelisted AMM pools (initially a BKD/WETH pool on Curve)
The token supply is limited to a total of
The annual inflation rate
The InflationManager
is the main contract in charge of handling the inflation schedule.
Liquidity providers on Backd receive Backd governance tokens in proportion to the share of total liquidity they supply in a pool and the weight
where
LP rewards are mainly managed by LpGauge
.
In the Backd protocol, keepers receive Backd governance tokens in proportion to the value of collateral top-ups they execute.
The value of top ups reported by a keeper
where
The rewards for keepers are mostly handled in the KeeperGauge
.
In addition to providing liquidity and reporting positions eligible for collateral top ups, users of the Backd protocol can also earn governance tokens by providing liquidity to AMM pools containing Backd governance tokens. In order to receive these, the LP token of the respective AMM pool must be staked in the Backd protocol and previously approved via governance. Their fair share of released Backd governance tokens is computed as:
where
The rewards for Backd AMM LPs are planned to be initially distributed through extra rewards for a Convex pool but could be distributed using AMMGauge
should we change the AMM to something else than Curve (e.g. Uniswap).
Filename | Lines of code |
---|---|
contracts/access/Authorization.sol | 11 |
contracts/access/RoleManager.sol | 139 |
contracts/AddressProvider.sol | 247 |
contracts/BkdLocker.sol | 242 |
contracts/Controller.sol | 86 |
contracts/RewardHandler.sol | 44 |
contracts/StakerVault.sol | 262 |
contracts/tokenomics/AmmGauge.sol | 116 |
contracts/tokenomics/BkdToken.sol | 20 |
contracts/tokenomics/FeeBurner.sol | 73 |
contracts/tokenomics/InflationManager.sol | 442 |
contracts/tokenomics/KeeperGauge.sol | 117 |
contracts/tokenomics/LpGauge.sol | 88 |
contracts/tokenomics/Minter.sol | 152 |
contracts/tokenomics/VestedEscrow.sol | 134 |
contracts/tokenomics/VestedEscrowRevocable.sol | 78 |
contracts/utils/CvxMintAmount.sol | 21 |
contracts/utils/Preparable.sol | 89 |
contracts/zaps/PoolMigrationZap.sol | 42 |
interfaces/vendor/ICurveSwap.sol | 44 |
interfaces/vendor/ICvxLocker.sol | 42 |
libraries/UncheckedMath.sol | 18 |