DutchAuctionSettlement
Inherits: Settlement, AmountDeriver
Functions
constructor
constructor(Starport SP_) Settlement(SP_);
postSettlement
function postSettlement(Starport.Loan calldata loan, address fulfiller) external virtual override returns (bytes4);
postRepayment
function postRepayment(Starport.Loan calldata, address) external virtual override returns (bytes4);
validate
function validate(Starport.Loan calldata loan) external view virtual override returns (bytes4);
getAuctionStart
Get the start of the auction
function getAuctionStart(Starport.Loan calldata loan) public view virtual returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
loan | Starport.Loan | The loan being referenced |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | uint256 The start of the auction |
getSettlementConsideration
function getSettlementConsideration(Starport.Loan calldata loan)
public
view
virtual
override
returns (ReceivedItem[] memory consideration, address authorized);
Errors
AuctionNotStarted
error AuctionNotStarted();
Structs
Details
struct Details {
uint256 startingPrice;
uint256 endingPrice;
uint256 window;
}