MockBondingCurve
Functions
constructor
function constructor(
bool _atScale,
uint256 price
) public
Parameters
Name | Type | Description |
---|---|---|
_atScale | bool | |
price | uint256 |
setScale
function setScale(
bool _atScale
) public
Parameters
Name | Type | Description |
---|---|---|
_atScale | bool |
setCurrentPrice
function setCurrentPrice(
uint256 price
) public
Parameters
Name | Type | Description |
---|---|---|
price | uint256 |
allocate
function allocate() public
purchase
function purchase(
address ,
uint256
) public returns (uint256 amountOut)
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | uint256 |
getAmountOut
function getAmountOut(
uint256 amount
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 |
getAverageUSDPrice
function getAverageUSDPrice(
uint256
) public returns (struct Decimal.D256)
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |