MockUniswapIncentive
Functions
constructor
function constructor(
address core
) public
Parameters
Name | Type | Description |
---|---|---|
core | address |
incentivize
function incentivize(
address sender,
address recipient,
address ,
uint256
) public
Parameters
Name | Type | Description |
---|---|---|
sender | address | |
recipient | address | |
`` | address | |
`` | uint256 |
isIncentiveParity
function isIncentiveParity() external returns (bool)
setIncentiveParity
function setIncentiveParity(
bool _isParity
) public
Parameters
Name | Type | Description |
---|---|---|
_isParity | bool |
isExemptAddress
function isExemptAddress(
address
) public returns (bool)
Parameters
Name | Type | Description |
---|---|---|
`` | address |
setExempt
function setExempt(
bool exempt
) public
Parameters
Name | Type | Description |
---|---|---|
exempt | bool |
updateOracle
function updateOracle() external returns (bool)
setExemptAddress
function setExemptAddress(
address account,
bool _isExempt
) external
Parameters
Name | Type | Description |
---|---|---|
account | address | |
_isExempt | bool |
getBuyIncentive
function getBuyIncentive(
uint256 amount
) external returns (uint256, uint32 weight, struct Decimal.D256 initialDeviation, struct Decimal.D256 finalDeviation)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 |
getSellPenalty
function getSellPenalty(
uint256 amount
) external returns (uint256, struct Decimal.D256 initialDeviation, struct Decimal.D256 finalDeviation)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 |