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_ROLE

DEVOPS_ROLE

bytes32 DEVOPS_ROLE

INITIALIZER_ROLE

bytes32 INITIALIZER_ROLE

SERVICER_ROLE

bytes32 SERVICER_ROLE

termRepoId

bytes32 termRepoId

transfersPaused

bool transfersPaused

emitter

contract ITermEventEmitter emitter

whileTransfersNotPaused

modifier whileTransfersNotPaused()

constructor

constructor() public

initialize

function initialize(string termRepoId_, address termInitializer_) external

pairTermContracts

function pairTermContracts(address termRepoCollateralManager_, address termRepoServicer_, contract ITermEventEmitter emitter_, address devopsMultisig_, address adminWallet_) external

transferTokenFromWallet

function transferTokenFromWallet(address originWallet, address token, uint256 amount) external

Locks tokens from origin wallet Reverts if caller doesn't have SERVICER_ROLE

Parameters

transferTokenToWallet

function transferTokenToWallet(address destinationWallet, address token, uint256 amount) external

Unlocks tokens to destination wallet

Reverts if caller doesn't have SERVICER_ROLE

Parameters

pauseTransfers

function pauseTransfers() external

unpauseTransfers

function unpauseTransfers() external

_authorizeUpgrade

function _authorizeUpgrade(address impl) internal

required override by the OpenZeppelin UUPS module

Parameters

Last updated