OCT_YDL.sol
OCT -> On-Chain Treasury
Last updated
OCT -> On-Chain Treasury
Last updated
Zivoe Finance - Official Documentation
This contract converts assets and forwards them to the YDL.
canPush() - Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPushMulti() - Permission for owner to call pushToLockerMulti()
. See ZivoeLocker.sol
canPull() - Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullMulti() - Permission for owner to call pullFromLockerMulti()
. See ZivoeLocker.sol
canPullPartial() - Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
canPullPartialMulti() - Permission for owner to call pullFromLockerMultiPartial()
. See ZivoeLocker.sol
convertAndForward() - Converts an asset to YDL.distributedAsset() and forwards it.
canPush()
Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
canPushMulti()
Permission for owner to call pushToLockerMulti()
. See ZivoeLocker.sol
canPull()
Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
canPullMulti()
Permission for owner to call pullFromLockerMulti()
. See ZivoeLocker.sol
canPullPartial()
Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
canPullPartialMulti()
Permission for owner to call pullFromLockerMultiPartial()
. See ZivoeLocker.sol
convertAndForward()
Converts an asset to YDL.distributedAsset() and forwards it.
Emits the AssetConvertedForwarded() event
AssetConvertedForwarded()
Emitted during convertAndForward()
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Indexed | Name | Description |
---|---|---|---|
address
GBL
The ZivoeGlobals contract.
address
asset
The asset to convert.
bytes
data
The payload containing conversion data, consumed by 1INCH_V5.
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.