TermDiscountRateAdapter.sol#TermDiscountRateAdapter
Last updated
Last updated
Inherits: , AccessControl
Previous term controller
Current term controller
Retrieves the discount rate for a given repo token
This function fetches the auction results for the repo token's term repo ID and returns the clearing rate of the most recent auction
Parameters
termController
address
The address of the term controller
repoToken
address
The address of the repo token
Returns
<none>
uint256
The discount rate for the specified repo token
Retrieves the discount rate for a given repo token
This function fetches the auction results for the repo token's term repo ID and returns the clearing rate of the most recent auction
Parameters
repoToken
address
The address of the repo token
Returns
<none>
uint256
The discount rate for the specified repo token
Sets the invalidity of the result of a specific auction for a given repo token
This function is used to mark auction results as invalid or not, typically in cases of suspected manipulation
Parameters
repoToken
address
The address of the repo token associated with the auction
termAuctionId
bytes32
The unique identifier of the term auction to be invalidated
isInvalid
bool
The status of the rate invalidation
Sets the term controller
Parameters
termController
address
The address of the term controller
Set the repo redemption haircut
Parameters
repoToken
address
The address of the repo token
haircut
uint256
The repo redemption haircut in 18 decimals