OCT_DAO.sol
OCT -> On-Chain Treasury
Introduction
This contract converts assets and forwards them to the DAO.
State Variables
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 and forwards it to the DAO.
Read Functions
canPush()
canPush()
Permission for owner to call pushToLocker()
. See ZivoeLocker.sol
function canPush() public override pure returns (bool) { return true; }
canPushMulti()
canPushMulti()
Permission for owner to call pushToLockerMulti()
. See ZivoeLocker.sol
function canPushMulti() public override pure returns (bool) { return true; }
canPull()
canPull()
Permission for owner to call pullFromLocker()
. See ZivoeLocker.sol
function canPull() public override pure returns (bool) { return true; }
canPullMulti()
canPullMulti()
Permission for owner to call pullFromLockerMulti()
. See ZivoeLocker.sol
function canPullMulti() public override pure returns (bool) { return true; }
canPullPartial()
canPullPartial()
Permission for owner to call pullFromLockerPartial()
. See ZivoeLocker.sol
function canPullPartial() public override pure returns (bool) { return true; }
canPullPartialMulti()
canPullPartialMulti()
Permission for owner to call pullFromLockerMultiPartial()
. See ZivoeLocker.sol
function canPullPartialMulti() public override pure returns (bool) { return true; }
Write Functions
convertAndForward()
convertAndForward()
Converts an asset and forwards it to the DAO.
function convertAndForward(
address asset,
address toAsset,
bytes calldata data
) external nonReentrant;
address
asset
The asset to convert.
uint256
toAsset
The ERC20 that we are converting "asset" to.
bytes
data
The payload containing conversion data, consumed by 1INCH_V5.
Emits the AssetConvertedForwarded() event
Events
AssetConvertedForwarded()
AssetConvertedForwarded()
Emitted during convertAndForward()
event AssetConvertedForwarded(
address indexed asset,
address indexed toAsset,
uint256 amountFrom,
uint256 amountTo
);
address
True
asset
The "asset" being converted.
address
True
toAsset
The ERC20 that we are converting "asset" to.
uint256
False
amountFrom
The amount being converted.
uint256
False
amountTo
The amount received from conversion.
Last updated