OCT_YDL.sol
OCT -> On-Chain Treasury
Introduction
This contract converts assets and forwards them to the YDL.
State Variables
Type | Name | Description |
---|---|---|
address | GBL | The ZivoeGlobals contract. |
Sections
canPush() - Permission for owner to call
pushToLocker()
. See ZivoeLocker.solcanPushMulti() - Permission for owner to call
pushToLockerMulti()
. See ZivoeLocker.solcanPull() - Permission for owner to call
pullFromLocker()
. See ZivoeLocker.solcanPullMulti() - Permission for owner to call
pullFromLockerMulti()
. See ZivoeLocker.solcanPullPartial() - Permission for owner to call
pullFromLockerPartial()
. See ZivoeLocker.solcanPullPartialMulti() - Permission for owner to call
pullFromLockerMultiPartial()
. See ZivoeLocker.sol
convertAndForward() - Converts an asset to YDL.distributedAsset() and forwards it.
Read Functions
canPush()
canPush()
Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPushMulti()
canPushMulti()
Permission for owner to call pushToLockerMulti()
. See ZivoeLocker.sol
canPull()
canPull()
Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullMulti()
canPullMulti()
Permission for owner to call pullFromLockerMulti()
. See ZivoeLocker.sol
canPullPartial()
canPullPartial()
Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
canPullPartialMulti()
canPullPartialMulti()
Permission for owner to call pullFromLockerMultiPartial()
. See ZivoeLocker.sol
Write Functions
convertAndForward()
convertAndForward()
Converts an asset to YDL.distributedAsset() and forwards it.
Type | Name | Description |
---|---|---|
address | asset | The asset to convert. |
bytes | data | The payload containing conversion data, consumed by 1INCH_V5. |
Emits the AssetConvertedForwarded() event
Events
AssetConvertedForwarded()
AssetConvertedForwarded()
Emitted during convertAndForward()
Type | Indexed | Name | Description |
---|---|---|---|
address | True | asset | The "asset" being converted. |
address | True | distributedAsset | The ERC20 that we are converting "asset" to, based on YDL.distributedAsset(). |
uint256 | False | amountFrom | The amount being converted. |
uint256 | False | amountTo | The amount of distibutedAsset received. |
Last updated