Convex on Ethereum
Deployments
Action: deposit
Parameters
| Name | Type | Description | 
|---|---|---|
| targets | string[] (required) | Poolname |PoolcrvLPToken |Poolid | 
Each Convex pool is connected to exactly one Curve Liquidity Provider Token (crvLPToken) and we allow specifying the deposit targets using any of the following identifiers:
- crvLPToken symbol (Poolname).
- crvLPToken address (PoolcrvLPToken).
- Convex pool ID (Poolid).
TARGET_CRV_LP_TOKEN below refers to the address of Convex pool's crvLPToken.
TARGET_ID below refers to the Convex pool ID.TARGET_CVX_DEPOSIT_TOKEN below refers to the cvxDepositToken contract
address for the target Convex pool.
TARGET_REWARDER below refers to the cvxBaseRewardPool contract address for
the target Convex pool.
TARGET_CRV_LP_TOKEN · approve
Approve Booster to spend TARGET_CRV_LP_TOKEN tokens on behalf of the avatar.
- 
Contract: TARGET_CRV_LP_TOKEN
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to Boosteramount- 
TARGET_CVX_DEPOSIT_TOKEN · approve
Approve TARGET_REWARDER to spend TARGET_CVX_DEPOSIT_TOKEN tokens on behalf of the avatar.
- 
Contract: TARGET_CVX_DEPOSIT_TOKEN
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to TARGET_REWARDERamount- 
Booster · deposit
Deposit TARGET_CRV_LP_TOKEN tokens to the corresponding Convex pool and receive TARGET_CVX_DEPOSIT_TOKEN tokens in exchange.
The TARGET_CVX_DEPOSIT_TOKEN can be staked using the stake parameter and receive TARGET_REWARDER tokens in exchange.
- 
Contract: Booster
- 
Function: deposit(uint256,uint256,bool)Parameter Constraint pidequal to TARGET_IDamount- stake- 
Booster · depositAll
Deposit TARGET_CRV_LP_TOKEN tokens to the corresponding Convex pool and receive TARGET_CVX_DEPOSIT_TOKEN tokens in exchange (it is called when MAX amount is deposited).
The TARGET_CVX_DEPOSIT_TOKEN can be staked using the stake parameter and receive TARGET_REWARDER tokens in exchange.
- 
Contract: Booster
- 
Function: depositAll(uint256,bool)Parameter Constraint pidequal to TARGET_IDstake- 
TARGET_REWARDER · withdraw
Redeem TARGET_REWARDER tokens and withdraw TARGET_CVX_DEPOSIT_TOKEN tokens.
- 
Contract: TARGET_REWARDER
- 
Function: withdraw(uint256,bool)Parameter Constraint amount- claim- 
TARGET_REWARDER · withdrawAndUnwrap
Redeem TARGET_REWARDER tokens and withdraw and unwrap TARGET_CRV_LP_TOKEN tokens.
- 
Contract: TARGET_REWARDER
- 
Function: withdrawAndUnwrap(uint256,bool)Parameter Constraint amount- claim- 
TARGET_REWARDER · getReward(address,bool)
Claim Pool rewards of a specific account.
- 
Contract: TARGET_REWARDER
- 
Function: getReward(address,bool)Parameter Constraint accountequal to AVATARclaimExtras- 
Action: stake
Parameters:
| Name | Type | Constraint | 
|---|---|---|
| targets | string[] (required) | StakeTokensymbols |StakeTokenaddresses | 
Target: cvxCRV
If the cvxCRV token is given as an element of targets, the following functions will be allowed:
CRV · approve
Approve CrvDepositor to spend CRV tokens on behalf of avatar.
- 
Contract: CRV
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to CrvDepositoramount- 
cvxCRV · approve
Approve stkCvxCrv to spend cvxCRV tokens on behalf of avatar.
- 
Contract: cvxCRV
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to stkCvxCrvamount- 
CrvDepositor · deposit(uint256,bool)
Mint cvxCRV using CRV.
- 
Contract: CrvDepositor
- 
Function: deposit(uint256,bool)Parameter Constraint amount- lock- 
CrvDepositor · deposit(uint256,bool,address)
Mint and optionally stake cvxCRV using CRV.
- 
Contract: CrvDepositor
- 
Function: deposit(uint256,bool,address)Parameter Constraint amount- lock- stakeAddressequal to ( 0x0000000000000000000000000000000000000000orstkCvxCrv)
- 
If the stakeAddressis:- 0x0000000000000000000000000000000000000000: mint- cvxCRV.
- stkCvxCrv: mint- cvxCRV, stake it and receive- stkCvxCrvtokens in exchange.
 
stkCvxCrv · stake
Stake cvxCRV tokens and receive stkCvxCrv tokens in exchange.
- 
Contract: stkCvxCrv
- 
Function: stake(uint256,address)Parameter Constraint amount- toequal to AVATAR
stkCvxCrv · setRewardWeight
Set the reward weight in order to receive more governance tokens rewards, or more stablecoin rewards.
- 
Contract: stkCvxCrv
- 
Function: setRewardWeight(uint256)Parameter Constraint weight- 
stkCvxCrv · getReward
Claim cvxCRV staking rewards.
- 
Contract: stkCvxCrv
- 
Function: getReward(address)Parameter Constraint accountequal to AVATAR
Target: CVX
If the CVX token is given as an element of targets, the following functions will be allowed:
CVX · approve
Approve CvxRewardPool to spend CVX tokens on behalf of avatar.
- 
Contract: CRV
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to CvxRewardPoolamount- 
CvxRewardPool · stake
Stake CVX tokens and receive CvxRewardPool tokens in exchange.
- 
Contract: CvxRewardPool
- 
Function: stake(uint256)Parameter Constraint amount- 
CvxRewardPool · getReward
Claim CVX staking rewards.
- 
Contract: CvxRewardPool
- 
Function: getReward(bool)Parameter Constraint stake- 
Action: lock
Parameters:
N/A.
CVX · approve
Approve vlCVX to spend CVX tokens on behalf of the avatar.
- 
Contract: CVX
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to vlCVXamount- 
vlCVX · lock
Lock CVX tokens and receive vlCVX tokens in exchange.
- 
Contract: vlCVX
- 
Function: lock(address,unit256)Parameter Constraint accountequal to AVATARamount- 
vlCVX · processExpiredLocks
Process expired CVX locks.
- 
Contract: vlCVX
- 
Function: processExpiredLocks(bool)Parameter Constraint relock- 
vlCVX · getReward
Claim CVX locking rewards.
- 
Contract: vlCVX
- 
Function: getReward(address,bool)Parameter Constraint accountequal to AVATARstake-