FSM Governance Interface
Governance contract for stopping FSM-like contracts
1. Summary
This governance interface allows token holders to stop()
FSM-like contracts in case of an oracle attack.
2. Contract Variables & Functions
Variables
owner
- the address of the contract's owner. Meant to setFSM
addressesonlyOwner
- modifier that checks whether theowner
calls a functionauthority
- contract authority, able only to stop anFSM
fsms[collateralType: bytes32]
- mapping of OSM-like contracts
Modifiers
isAuthorized
- modifier that checks whether msg.sender can call a specific functiononlyOwner
- modifiers that ensures only theowner
can call a specific function
Functions
canCall
- checks whether an address can call a functionsetFsm(bytes32: collateralType, address: fsm)
- set the address of anFSM
for a specific collateral typesetOwner(address: owner]
- change the contract's ownersetAuthority(address: authority)
- change the contract's authoritystop(bytes32: collateralType)
- stop a collateral type'sFSM
3. Walkthrough
The owner
and the authority
can be changed using setOwner
and setAuthority
. The owner
can setFsm
s for each collateral type and any authed address (be it the owner
, authority
or another address that was whitelisted in the authority
contract) can stop
any FSM
.
Last updated