-
Notifications
You must be signed in to change notification settings - Fork 19
Security Switches
Michael Elliot edited this page Mar 24, 2021
·
4 revisions
Functions pausable via whenNotPaused
(OpenZeppelin Pausable.sol
):
createLoan
Pausable by: | Governor (MapleGlobals.governor ) or Security Admins (LoanFactory.admins ) |
Security Admins managed by: | Governor (MapleGlobals.governor ) |
createPool
Pausable by: | Governor (MapleGlobals.governor ) or Security Admins (PoolFactory.admins ) |
Security Admins managed by: | Governor (MapleGlobals.governor ) |
fundLoan
Pausable by: | Borrower (Loan.borrower ) or Security Admins (Loan.admins ) |
Security Admins managed by: | Borrower (Loan.borrower ) |
stake
Pausable by: | Pool Delegate (Pool.poolDelegate ) or Security Admins (Pool.admins ) |
Security Admins managed by: | Pool Delegate (Pool.poolDelegate ) |
Pausable by limiting liquidityCap
via setLiquidityCap(0)
:
deposit
Pausable by: | Pool Delegate (Pool.poolDelegate ) or Security Admins (Pool.admins ) |
Security Admins managed by: | Pool Delegate (Pool.poolDelegate ) |
Functions pausable by the Emergency Admin (MapleGlobals.admin
) via protocol-wide switch (MapleGlobals.protocolPaused
):
-
LoanFactory
createLoan
-
Loan
fundLoan
unwind
drawdown
triggerDefault
makePayment
makeFullPayment
withdrawFunds
setAdmin
-
PoolFactory
createPool
-
Pool
transfer
setLiquidityCap
deposit
withdraw
claim
withdrawFunds
finalize
fundLoan
deactivate
setPenaltyDelay
setPrincipalPenalty
setLockupPeriod
openPoolToPublic
setAllowList
setAllowlistStakeLocker
triggerDefault
setAdmin
-
StakeLocker
transfer
stake
unstake
withdrawFunds
Pausable by: | Emergency Admin (MapleGlobals.admin ) |
Emergency Admin managed by: | Governor (MapleGlobals.governor ) |