RepoTokenUtils.sol#RepoTokenUtils
State Variables
THREESIXTY_DAYCOUNT_SECONDS
RATE_PRECISION
Functions
calculatePresentValue
Calculate the present value of a repoToken
Parameters
repoTokenAmountInBaseAssetPrecision
uint256
The amount of repoToken in base asset precision
purchaseTokenPrecision
uint256
The precision of the purchase token
redemptionTimestamp
uint256
The redemption timestamp of the repoToken
discountRate
uint256
The auction rate
Returns
presentValue
uint256
The present value of the repoToken
getNormalizedRepoTokenAmount
Get the normalized amount of a repoToken in base asset precision
Parameters
repoToken
address
The address of the repoToken
repoTokenAmount
uint256
The amount of the repoToken
purchaseTokenPrecision
uint256
The precision of the purchase token
repoRedemptionHaircut
uint256
The haircut to be applied to the repoToken for bad debt
Returns
repoTokenAmountInBaseAssetPrecision
uint256
The normalized amount of the repoToken in base asset precision
Last updated