TermRepoLocker.sol
This contract belongs to the Term Servicer group of contracts and is specific to a Term Repo deployment. This is the contract in which Term Servicer locks collateral and purchase tokens.
TermRepoLocker
This is the contract in which Term Servicer locks collateral and purchase tokens
This contract belongs to the Term Servicer group of contracts and is specific to a Term Repo deployment
ADMIN_ROLE
bytes32 ADMIN_ROLEDEVOPS_ROLE
bytes32 DEVOPS_ROLEINITIALIZER_ROLE
bytes32 INITIALIZER_ROLESERVICER_ROLE
bytes32 SERVICER_ROLEtermRepoId
bytes32 termRepoIdtransfersPaused
bool transfersPausedemitter
contract ITermEventEmitter emitterwhileTransfersNotPaused
modifier whileTransfersNotPaused()constructor
constructor() publicinitialize
function initialize(string termRepoId_, address termInitializer_) externalpairTermContracts
function pairTermContracts(address termRepoCollateralManager_, address termRepoServicer_, contract ITermEventEmitter emitter_, address devopsMultisig_, address adminWallet_) externaltransferTokenFromWallet
function transferTokenFromWallet(address originWallet, address token, uint256 amount) externalLocks tokens from origin wallet Reverts if caller doesn't have SERVICER_ROLE
Parameters
originWallet
address
The wallet from which to transfer tokens
token
address
The address of token being transferred
amount
uint256
The amount of tokens to transfer
transferTokenToWallet
function transferTokenToWallet(address destinationWallet, address token, uint256 amount) externalUnlocks tokens to destination wallet
Reverts if caller doesn't have SERVICER_ROLE
Parameters
destinationWallet
address
The wallet to unlock tokens into
token
address
The address of token being unlocked
amount
uint256
The amount of tokens to unlock
pauseTransfers
function pauseTransfers() externalunpauseTransfers
function unpauseTransfers() external_authorizeUpgrade
function _authorizeUpgrade(address impl) internalrequired override by the OpenZeppelin UUPS module
Parameters
impl
address
new impl address for proxy upgrade
Last updated