TermRepoCollateralManager.sol
This contract belongs to the Term Servicer group of contracts and is specific to a Term Repo deployment. This contract enforces margin maintenance rules for adding/withdrawing, and liquidating tokens.
TermRepoCollateralManager
This contract enforces margin maintenance rules for adding/withdrawing, repurchasing and liquidating collateral
This contract belongs to the Term Servicer group of contracts and is specific to a Term Repo deployment
ADMIN_ROLE
AUCTION_LOCKER
DEVOPS_ROLE
INITIALIZER_ROLE
SERVICER_ROLE
ROLLOVER_MANAGER
ROLLOVER_TARGET_AUCTIONEER_ROLE
termRepoId
liquidationsPaused
termContractPaired
numOfAcceptedCollateralTokens
deMinimisMarginThreshold
liquidateDamangesDueToProtocol
netExposureCapOnLiquidation
termRepoServicer
purchaseToken
termPriceOracle
termRepoLocker
termController
emitter
collateralTokens
encumberedCollateralBalances
maintenanceCollateralRatios
initialCollateralRatios
liquidatedDamages
lockedCollateralLedger
isCollateralTokenAccepted
whileLiquidationsNotPaused
notTermContractPaired
constructor
initialize
pairTermContracts
externalLockCollateral
Parameters
externalUnlockCollateral
Parameters
batchLiquidation
Parameters
batchLiquidationWithRepoToken
Parameters
batchDefault
Parameters
calculateMintableExposure
Parameters
getCollateralBalances
Parameters
Return Values
getCollateralBalance
Parameters
Return Values
encumberedCollateralRemaining
Return Values
auctionLockCollateral
Parameters
auctionUnlockCollateral
Parameters
acceptRolloverCollateral
Parameters
transferRolloverCollateral
Parameters
Return Values
approveRolloverAuction
Parameters
unlockCollateralOnRepurchase
Parameters
journalBidCollateralToCollateralManager
Parameters
mintOpenExposureLockCollateral
Parameters
reopenToNewAuction
Parameters
pauseLiquidations
unpauseLiquidations
isBorrowerInShortfall
Parameters
Return Values
getCollateralMarketValue
Parameters
Return Values
_lockCollateral
_unlockCollateral
_partialUnlockCollateral
_validateBatchLiquidationForFullLiquidation
A helper function to validate various conditions required to liquidate
Return Values
_unencumberRemainingBorrowerCollateralOnZeroObligation
_withinNetExposureCapOnLiquidation
_collateralSeizureAmounts
returns total amount of collateral seized in liquidation and the amount of that total going protocol
_transferLiquidationCollateral
A helper function to transfer tokens and update relevant state variables and mappings
_isAcceptedCollateralToken
_usdValueOfBalances
_authorizeUpgrade
required override by the OpenZeppelin UUPS module
Parameters
Last updated