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

uint256 MAX_BID_PRICE

MAX_BID_COUNT

uint256 MAX_BID_COUNT

THREESIXTY_DAYCOUNT_SECONDS

uint256 THREESIXTY_DAYCOUNT_SECONDS

ADMIN_ROLE

bytes32 ADMIN_ROLE

AUCTIONEER_ROLE

bytes32 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

Name
Type
Description

rolloverManager

address

The address of the TermRepoRolloverManager contract

lockBidsWithReferral

Parameters

Name
Type
Description

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

Name
Type
Description

[0]

bytes32[]

A bytes32 array of unique on chain bid ids.

lockRolloverBid

Parameters

Name
Type
Description

bid

struct TermAuctionBid

A struct containing details of the bid

lockBids

Parameters

Name
Type
Description

bidSubmissions

struct TermAuctionBidSubmission[]

An array of bid submissions

Return Values

Name
Type
Description

[0]

bytes32[]

A bytes32 array of unique on chain bid ids.

lockedBid

Parameters

Name
Type
Description

id

bytes32

A bid Id

Return Values

Name
Type
Description

[0]

struct TermAuctionBid

A struct containing details of the locked bid

revealBids

Parameters

Name
Type
Description

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

Name
Type
Description

ids

bytes32[]

An array of ids to unlock

getAllBids

Parameters

Name
Type
Description

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

Name
Type
Description

[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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

[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

Name
Type
Description

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

Name
Type
Description

impl

address

new impl address for proxy upgrade

Last updated