TermAuction.sol
This contract belongs to the Term Auction group of contracts and is specific to a Term Repo deployment. This contract calculates a clearing price in a blind double auction and manages auction clearing
TermAuction
ClearingPriceState
struct ClearingPriceState {
uint256 offerPrice;
uint256 offerIndex;
uint256 bidIndex;
uint256 cumSumOffers;
uint256 cumSumBids;
uint256 maxClearingVolume;
uint256 nextOfferIndex;
uint256 nextBidIndex;
uint256 nextCumSumOffers;
uint256 nextCumSumBids;
uint256 nextOfferPrice;
uint256 nextMaxClearingVolume;
bool minCumSumCorrection;
uint256 nextBidPrice;
uint256 clearingPrice;
}THREESIXTY_DAYCOUNT_SECONDS
ADMIN_ROLE
DEVOPS_ROLE
INITIALIZER_ROLE
termRepoId
termAuctionId
auctionEndTime
dayCountFractionMantissa
termRepoServicer
termAuctionBidLocker
termAuctionOfferLocker
purchaseToken
emitter
controller
clearingPrice
clearingPricePostProcessingOffset
auctionCompleted
auctionCancelledForWithdrawal
completeAuctionPaused
termContractPaired
onlyWhileAuctionClosed
whenCompleteAuctionNotPaused
notTermContractPaired
constructor
initialize
pairTermContracts
completeAuction
Parameters
Name
Type
Description
cancelAuction
Parameters
Name
Type
Description
cancelAuctionForWithdrawal
_increaseCumSumBids
_decreaseCumSumBids
_minUint256
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_calculateClearingPrice
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_findFirstIndexForPrice
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_findLastIndexForPrice
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_fullyAssignBid
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_fullyAssignOffer
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_partiallyAssignBid
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_partiallyAssignOffer
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_assignRolloverBid
_markRolloverAsProcessed
_assignBids
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_assignOffers
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_calculateRepurchasePrice
Parameters
Name
Type
Description
Return Values
Name
Type
Description
_calculateAndStoreClearingPrice
pauseCompleteAuction
unpauseCompleteAuction
_authorizeUpgrade
Parameters
Name
Type
Description
Last updated