OCT_Convert.sol
OCT -> On-Chain Treasury
Last updated
OCT -> On-Chain Treasury
Last updated
This contract converts zJTT to zSTT, and allows zSTT withdrawals.
address
GBL
The ZivoeGlobals contract.
mapping(address => bool)
isDepositor
Whitelist for converters, managed by keepers.
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
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
updateWhitelist()
Updates whitelist.
address
user
The address to add/remove from whitelist.
bool
status
The new status of user (true = accepted, false = rejected).
convertTranche()
Converts zJTT to zSTT.
uint
amount
The amount of stablecoin to use for conversion.
address
stablecoin
The stablecoin to use for conversion (will be transferred here from ZivoeDAO)
withdrawTranche()
Converts zSTT to stablecoins.
uint
amount
The amount of stablecoin to use for conversion.
address
stablecoin
The stablecoin to use for conversion (will be transferred here from ZivoeDAO)
TrancheConverted()
address
False
stablecoin
The stablecoin converted.
address
False
caller
The caller of the function.
uint256
False
amount
The amount being converted.
TrancheWithdrawn()
address
False
stablecoin
The stablecoin withdrawn.
address
False
caller
The caller of the function.
uint256
False
amount
The amount being withdrawn.
- Updates whitelist.
- Converts zJTT to zSTT.
- Converts zSTT to stablecoins.
Emits the event
Emits the event
Emitted during
Emitted during