stop()
FSM-like contracts in case of an oracle attack.owner
- the address of the contract's owner. Meant to set FSM
addressesonlyOwner
- modifier that checks whether the owner
calls a functionauthority
- contract authority, able only to stop an FSM
fsms[collateralType: bytes32]
- mapping of OSM-like contractsisAuthorized
- modifier that checks whether msg.sender can call a specific functiononlyOwner
- modifiers that ensures only the owner
can call a specific functioncanCall
- checks whether an address can call a functionsetFsm(bytes32: collateralType, address: fsm)
- set the address of an FSM
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's FSM
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
.