Skip to main content

MockUniswapIncentive

Functions

constructor

function constructor(
address core
) public

Parameters

NameTypeDescription
coreaddress

incentivize

function incentivize(
address sender,
address recipient,
address ,
uint256
) public

Parameters

NameTypeDescription
senderaddress
recipientaddress
``address
``uint256

isIncentiveParity

function isIncentiveParity() external returns (bool)

setIncentiveParity

function setIncentiveParity(
bool _isParity
) public

Parameters

NameTypeDescription
_isParitybool

isExemptAddress

function isExemptAddress(
address
) public returns (bool)

Parameters

NameTypeDescription
``address

setExempt

function setExempt(
bool exempt
) public

Parameters

NameTypeDescription
exemptbool

updateOracle

function updateOracle() external returns (bool)

setExemptAddress

function setExemptAddress(
address account,
bool _isExempt
) external

Parameters

NameTypeDescription
accountaddress
_isExemptbool

getBuyIncentive

function getBuyIncentive(
uint256 amount
) external returns (uint256, uint32 weight, struct Decimal.D256 initialDeviation, struct Decimal.D256 finalDeviation)

Parameters

NameTypeDescription
amountuint256

getSellPenalty

function getSellPenalty(
uint256 amount
) external returns (uint256, struct Decimal.D256 initialDeviation, struct Decimal.D256 finalDeviation)

Parameters

NameTypeDescription
amountuint256