DefaultReserveAuctionStrategy

Implements the calculation of the current dutch auction price

_maxPriceMultiplier

uint256 _maxPriceMultiplier

Expressed in PRBMath.SCALE

_minExpPriceMultiplier

uint256 _minExpPriceMultiplier

Expressed in PRBMath.SCALE

_minPriceMultiplier

uint256 _minPriceMultiplier

Expressed in PRBMath.SCALE

_stepLinear

uint256 _stepLinear

Expressed in PRBMath.SCALE

_stepExp

uint256 _stepExp

Expressed in PRBMath.SCALE

_tickLength

uint256 _tickLength

constructor

constructor(uint256 maxPriceMultiplier, uint256 minExpPriceMultiplier, uint256 minPriceMultiplier, uint256 stepLinear, uint256 stepExp, uint256 tickLength) public

getMaxPriceMultiplier

function getMaxPriceMultiplier() external view returns (uint256)

getMinExpPriceMultiplier

function getMinExpPriceMultiplier() external view returns (uint256)

getMinPriceMultiplier

function getMinPriceMultiplier() external view returns (uint256)

getStepLinear

function getStepLinear() external view returns (uint256)

getStepExp

function getStepExp() external view returns (uint256)

getTickLength

function getTickLength() external view returns (uint256)

calculateAuctionPriceMultiplier

function calculateAuctionPriceMultiplier(uint256 auctionStartTimestamp, uint256 currentTimestamp) external view returns (uint256)

Calculates the interest rates depending on the reserve's state and configurations

Parameters

NameTypeDescription

auctionStartTimestamp

uint256

The auction start block timestamp

currentTimestamp

uint256

The current block timestamp

Return Values

NameTypeDescription

[0]

uint256

auctionPrice The current auction price

_calculateAuctionPriceMultiplierByTicks

function _calculateAuctionPriceMultiplierByTicks(uint256 ticks) internal view returns (uint256)