TermAuctionBidLocker.sol
This contract belongs to the Term Auction group of contracts and is specific to a Term Repo deployment. This contract handles and proceesses Term Auction bid submissions
TermAuctionBidLocker
This contract handles and proceesses Term Auction bid submissions
This contract belongs to the Term Auction group of contracts and is specific to a Term Repo deployment
MAX_BID_PRICE
MAX_BID_COUNT
THREESIXTY_DAYCOUNT_SECONDS
ADMIN_ROLE
AUCTIONEER_ROLE
DEVOPS_ROLE
INITIALIZER_ROLE
ROLLOVER_MANAGER
termRepoId
termAuctionId
auctionStartTime
revealTime
auctionEndTime
minimumTenderAmount
dayCountFractionMantissa
purchaseToken
collateralTokens
termRepoCollateralManager
termRepoServicer
termPriceOracle
emitter
termAuction
bids
bidCount
termContractPaired
lockingPaused
unlockingPaused
onlyWhileAuctionOpen
onlyWhileAuctionRevealing
onlyBidder
whenLockingNotPaused
whenUnlockingNotPaused
notTermContractPaired
constructor
initialize
pairTermContracts
pairRolloverManager
Parameters
rolloverManager
address
The address of the TermRepoRolloverManager contract
lockBidsWithReferral
Parameters
bidSubmissions
struct TermAuctionBidSubmission[]
An array of Term Auction bid submissions to borrow an amount of money at rate up to but not exceeding the bid rate
referralAddress
address
A user address that referred the submitter of this bid
Return Values
[0]
bytes32[]
A bytes32 array of unique on chain bid ids.
lockRolloverBid
Parameters
bid
struct TermAuctionBid
A struct containing details of the bid
lockBids
Parameters
bidSubmissions
struct TermAuctionBidSubmission[]
An array of bid submissions
Return Values
[0]
bytes32[]
A bytes32 array of unique on chain bid ids.
lockedBid
Parameters
id
bytes32
A bid Id
Return Values
[0]
struct TermAuctionBid
A struct containing details of the locked bid
revealBids
Parameters
ids
bytes32[]
An array of bid ids of the bids to reveal
prices
uint256[]
An array of the bid prices to reveal
nonces
uint256[]
An array of nonce values to generate bid price hashes
unlockBids
unlockBids unlocks multiple bids and returns funds to the bidder
Parameters
ids
bytes32[]
An array of ids to unlock
getAllBids
Parameters
revealedBids
bytes32[]
An array of the revealed offer ids
expiredRolloverBids
bytes32[]
An array of the expired rollover bid ids
unrevealedBids
bytes32[]
An array of the unrevealed offer ids
Return Values
[0]
struct TermAuctionRevealedBid[]
An array of TermAuctionRevealedBid structs containing details of the revealed bids
[1]
struct TermAuctionBid[]
An array of TermAuctionBid structs containing details of the unrevealed bids
auctionUnlockBid
Parameters
id
bytes32
A bytes32 bid id
bidder
address
The address of the bidder
bidCollateralTokens
address[]
The addresses of the token used as collateral
amounts
uint256[]
The amounts of collateral tokens to unlock
_lock
_lockRolloverBid
_unlock
_revealBid
_getAllBids
Parameters
revealedBids
bytes32[]
An array of the revealed offer ids
expiredRolloverBids
bytes32[]
An array of the expired rollover bid ids
unrevealedBids
bytes32[]
An array of the unrevealed offer ids
Return Values
[0]
struct TermAuctionRevealedBid[]
An array of TermAuctionRevealedBid structs containing details of the revealed bids
[1]
struct TermAuctionBid[]
An array of TermAuctionBid structs containing details of the unrevealed bids
_truncateBidStruct
This does not check the hash of the revealed bid price
Parameters
bid
struct TermAuctionBid
The TermAuctionBid to convert to TermAuctionRevealedBid
_processRevealedBidsForValidity
_isRolloverStillValid
_isInInitialCollateralShortFall
_isInMaintenanceCollateralShortFall
_fillRevealedBidsForAuctionClearing
_generateBidId
_processBidForAuction
pauseLocking
unpauseLocking
pauseUnlocking
unpauseUnlocking
_authorizeUpgrade
required override by the OpenZeppelin UUPS module
Parameters
impl
address
new impl address for proxy upgrade
Last updated