LinkedPROXY.sol
The proxy contract for the linked protocol is the connector for a linked assets instance.
Below the overview of all functions in the proxy contract. The detailed description of a state change function can be found in the tab of the specific function.
#State changing functions
function initialize() onlyOwner external returns (bool succes);
function changeOracle() onlyOwner external returns (bool success);
function updateRate(uint256 newRate) whenNotPaused external returns (bool success);
function updateStartBlock(uint256 newBlock) whenNotPaused external returns (bool success);
function activateDefcon() onlyOwner external returns (bool);
#Non state changing functions
function readAddress() external view returns (address payable[8] memory);
function checkPause() external view returns (bool);High overview
State change functions
initialize() can only be called once by the owner and is used to set the contract addresses of the contracts used for this linked asset instance.
changeOracle() can only be called by the owner and is used to change the price oracle address.
updateRate() can only be called by the oracle contract when the linked asset instance is not paused. The oracle uses this function to change the price rate.
updateStartBlock() can only be called by the tax contract when the linked asset instance is not paused. The tax contract uses this function when updating the tax fee and stability reward.
activateDefcon() can only be called by the owner. This activates defcon and paused the linked asset instance by setting paused == true.
Non state change functions
readAddress() can be called by anyone and returns the contract addresses of the linked asset instance set at initialization.
checkPause() can be called by anyone and returns true if the system is paused. This is used by the other contracts to check if defcon is active.
Last updated
Was this helpful?