OCY_Convex_B.sol
OCY -> On-Chain Yield
Last updated
OCY -> On-Chain Yield
Last updated
Zivoe Finance - Official Documentation
This contract allocates stablecoins to the sUSD base-pool and stakes the LP tokens on Convex.
Type | Name | Description |
---|---|---|
address | GBL | The ZivoeGlobals contract. |
address | OCT_YDL | The OCT_YDL contract. |
address | DAI | Index 0, BasePool |
address | USDC | Index 1, BasePool |
address | USDT | Index 2, BasePool |
address | sUSD | Index 3, BasePool |
address | CRV | Native Reward #1 |
address | CVX | Native Reward #2 |
address | convexDeposit | Convex information. |
address | convexPoolToken | Convex information. |
address | convexRewards | Convex information. |
uint256 | convexPoolID | Convex information. |
address | curveBasePool | Curve information. |
address | curveBasePoolToken | Curve information. |
canPush() - Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPull() - Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullPartial() - Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
pushToLocker() - Migrates specific amount of ERC20 from owner() to locker.
pullFromLocker() - Migrates entire ERC20 balance from locker to owner()
.
pullFromLockerPartial() - Migrates specific amount of ERC20 from locker to owner()
.
claimRewards() - Claims rewards and forward them to the OCT_YDL.
updateOCTYDL() - Updates the OCT_YDL endpoint.
canPush()
Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPull()
Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullPartial()
Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
pushToLocker()
Migrates specific amount of ERC20 from owner() to locker.
Type | Name | Description |
---|---|---|
address | asset | The asset to migrate. |
uint256 | amount | The amount of "asset" to migrate. |
bytes | data | Accompanying transaction data. |
pullFromLocker()
Migrates entire ERC20 balance from locker to owner()
.
Type | Name | Description |
---|---|---|
address | asset | The asset to migrate. |
bytes | data | Accompanying transaction data. |
pullFromLockerPartial()
Migrates specific amount of ERC20 from locker to owner()
.
Type | Name | Description |
---|---|---|
address | asset | The asset to migrate. |
uint256 | amount | The amount of "asset" to migrate. |
bytes | data | Accompanying transaction data. |
claimRewards()
Claims rewards and forward them to the OCT_YDL.
Type | Name | Description |
---|---|---|
bool | extra | Flag for claiming extra rewards. |
updateOCTYDL()
Updates the OCT_YDL endpoint.
Type | Name | Description |
---|---|---|
address |
| The new address for OCT_YDL. |
Emits the UpdatedOCTYDL() event
UpdatedOCTYDL()
Emitted during updateOCTYDL()
Type | Indexed | Name | Description |
---|---|---|---|
address | True | newOCT | The new OCT_YDL contract. |
address | True | oldOCT | The old OCT_YDL contract. |