TermAuctionOfferLocker.sol
This contract belongs to the Term Auction group of contracts and is specific to a Term Repo deployment. This contract handles and processes Term Auction offer submissions
TermAuctionOfferLocker
This contract handles and proceesses Term Auction offer submissions
This contract belongs to the Term Auction group of contracts and is specific to a Term Repo deployment
MAX_OFFER_PRICE
MAX_OFFER_COUNT
ADMIN_ROLE
AUCTIONEER_ROLE
DEVOPS_ROLE
INITIALIZER_ROLE
termRepoId
termAuctionId
auctionStartTime
revealTime
auctionEndTime
minimumTenderAmount
purchaseToken
collateralTokens
termRepoServicer
emitter
termAuction
offers
offerCount
termContractPaired
lockingPaused
unlockingPaused
onlyWhileAuctionOpen
onlyWhileAuctionRevealing
onlyOfferor
onlyExistingOffer
whenLockingNotPaused
whenUnlockingNotPaused
notTermContractPaired
constructor
initialize
pairTermContracts
lockOffersWithReferral
Parameters
offerSubmissions
struct TermAuctionOfferSubmission[]
An array of Term Auction offer submissions to lend an amount of money at rate no lower than the offer rate
referralAddress
address
A user address that referred the submitter of this offer
Return Values
[0]
bytes32[]
A bytes32 array of unique on chain offer ids.
lockOffers
Parameters
offerSubmissions
struct TermAuctionOfferSubmission[]
An array of offer submissions
Return Values
[0]
bytes32[]
A bytes32 array of unique on chain offer ids.
lockedOffer
Parameters
id
bytes32
An offer Id
Return Values
[0]
struct TermAuctionOffer
A struct containing the details of the locked offer
revealOffers
Parameters
ids
bytes32[]
An array offer ids to reveal
prices
uint256[]
An array of the offer prices to reveal
nonces
uint256[]
An array of nonce values to generate bid price hashes
unlockOffers
unlockOffers unlocks multiple offers and returns funds to the offeror
Parameters
ids
bytes32[]
An array of offer ids
getAllOffers
Parameters
revealedOffers
bytes32[]
An array of the revealed offer ids
unrevealedOffers
bytes32[]
An array of the unrevealed offer ids
Return Values
[0]
struct TermAuctionRevealedOffer[]
An array of TermAuctionRevealedOffer structs containing details of the revealed offers
[1]
struct TermAuctionOffer[]
An array of TermAuctionOffer structs containing details of the unrevealed offers
unlockOfferPartial
Parameters
id
bytes32
An offer Id
offeror
address
Address of the offeror
amount
uint256
The amount of purchase tokens to unlock
_lock
_unlock
_revealOffer
Will revert if either the price does not match the offer price or is greater than the max offer price
Parameters
id
bytes32
An offer Id
price
uint256
The price of the offer to reveal
nonce
uint256
The user provided nonce value to generate the bid price hash
_generateOfferId
_processOfferForAuction
_truncateOfferStruct
This does not check the hash of the revealed offer price
Parameters
hidden
struct TermAuctionOffer
TermAuctionOffer to convert to TermAuctionRevealedOffer
price
uint256
The revealed price of the offer
pauseLocking
unpauseLocking
pauseUnlocking
unpauseUnlocking
_authorizeUpgrade
required override by the OpenZeppelin UUPS module
Parameters
impl
address
new impl address for proxy upgrade
Last updated