DutchAuctionCloser
function
receiveClosePositionPayout
nonpayable
Restricted (onlyMargin)
Inputs
| Parameter | Type | Description | 
|---|---|---|
| positionId | bytes32 | |
| closeAmount | uint256 | |
| closer | address | |
| positionOwner | address | |
| heldToken | address | |
| payout | uint256 | |
| totalHeldToken | uint256 | |
| payoutInHeldToken | bool | 
Outputs
| Type | Description | 
|---|---|
| bool | 
function
getAuctionCost
view
Inputs
| Parameter | Type | Description | 
|---|---|---|
| positionId | bytes32 | |
| totalHeldToken | uint256 | 
Outputs
| Type | Description | 
|---|---|
| uint256 | 
event
PositionClosedByDutchAuction
Inputs
| Parameter | Type | Description | 
|---|---|---|
| positionId | bytes32 | |
| owner | address | |
| bidder | address | |
| closeAmount | uint256 | |
| heldTokenForBidder | uint256 | |
| heldTokenForOwner | uint256 | 
Outputs
(void)
constructor
nonpayable
Inputs
| Parameter | Type | Description | 
|---|---|---|
| margin | address | |
| callTimeLimitNumerator | uint256 | |
| callTimeLimitDenominator | uint256 | 
Outputs
(void)
function
CALL_TIMELIMIT_DENOMINATOR
view
Inputs
(void)
Outputs
| Type | Description | 
|---|---|
| uint256 | 
function
CALL_TIMELIMIT_NUMERATOR
view
Inputs
(void)
Outputs
| Type | Description | 
|---|---|
| uint256 | 
function
DYDX_MARGIN
view
Inputs
(void)
Outputs
| Type | Description | 
|---|---|
| address |