Orchestrator
Orchestrator contract in charge of managing the settings of the vaults, rewards and TCAP token. It acts as the owner of these contracts.
Code
Address
Mainnet
Contract | Address |
---|---|
Orchestrator | 0x373c74bce7893097ab26d22f05691907d4f2c18e |
Rinkeby
Contract | Address |
---|---|
Orchestrator | 0xEF25580E76444A47d11A16F26A49DB1Bd1CA5CC9 |
Private Variables
The computed interface ID according to ERC-165. Indicates if this contract supports the vault handler functions.
The computed interface ID according to ERC-165. Indicates if this contract supports the tcap erc20 functions.
The computed interface ID according to ERC-165. Indicates if this contract supports the chainlink oracle functions.
Tracks which vault was emergency called.
Public Variables
Address that can set to 0 the fees or pause the vaults in an emergency event.
Events
Events are called each time the state changes on the contract.
An event emitted when the guardian is updated.
An event emitted when a transaction is executed.
Modifiers
onlyGuardian
Throws if called by any account other than the guardian.
validVault
Throws if vault is not valid. Uses ERC165 introspection to validate.
validTCAP
Throws if TCAP Token is not valid. Uses ERC165 introspection to validate.
validChainlinkOracle
Throws if Chainlink Oracle is not valid. Uses ERC165 introspection to validate.
State-Changing Functions
setGuardian
Sets the guardian of the orchestrator.
setRatio
Sets the ratio of a vault. Only owner can call it.
setBurnFee
Sets the burn fee of a vault. Only owner can call it.
setEmergencyBurnFee
Sets the burn fee to 0, only used on a black swan event. Only Guardian can call it.
setLiquidationPenalty
Sets the liquidation penalty of a vault. Only owner can call it.
setEmergencyLiquidationPenalty
Sets the liquidation penalty of a vault to 0, only used on a black swan event. Only guardian can call it.
pauseVault
Pauses the Vault. Only guardian can call it. Validates if _vault
is valid.
unpauseVault
Unpauses the Vault. Only guardian can call it. Validates if _vault
is valid.
enableTCAPCap
Enables or disables the TCAP Cap. Only owner can call it. Validates if _tcap
is valid.
setTCAPCap
Enables or disables the TCAP Cap. Only owner can call it. Validates if _tcap
is valid.
addTCAPVault
Adds Vault to TCAP Contract. Only owner can call it. Validates. if _tcap
and vault
are valid.
removeTCAPVault
Removes Vault to TCAP Contract. Only owner can call it. Validates. if _tcap
and vault
are valid.
executeTransaction
Allows the owner to execute custom transactions. Only owner can call it.
retrieveETH
Retrieves the fees stuck on the orchestrator. Only owner can call it. Transfer the balance to the contract owner.
receive
Allows the contract to receive ETH.