owner actions
MixinOwnerActions
notPriceError
modifier notPriceError(uint256 newUnitaryValue)
We keep this check to prevent accidental failure in Nav calculations.
onlyOwner
modifier onlyOwner()
changeFeeCollector
function changeFeeCollector(address feeCollector) external
Allows owner to decide where to receive the fee.
Parameters
feeCollector
address
Address of the fee receiver.
changeMinPeriod
function changeMinPeriod(uint48 minPeriod) external
Allows pool owner to change the minimum holding period.
Parameters
minPeriod
uint48
Time in seconds.
changeSpread
function changeSpread(uint16 newSpread) external
Allows pool owner to change the mint/burn spread.
Parameters
newSpread
uint16
Number between 0 and 1000, in basis points.
setKycProvider
function setKycProvider(address kycProvider) external
Allows pool owner to set/update the user whitelist contract.
Kyc provider can be set to null, removing user whitelist requirement.
Parameters
kycProvider
address
Address if the kyc provider.
setTransactionFee
function setTransactionFee(uint16 transactionFee) external
Allows pool owner to set the transaction fee.
Parameters
transactionFee
uint16
Value of the transaction fee in basis points.
setUnitaryValue
function setUnitaryValue(uint256 unitaryValue) external
Allows pool owner to set the pool price.
Parameters
unitaryValue
uint256
Value of 1 token in wei units.
setOwner
function setOwner(address newOwner) public
Allows pool owner to set a new owner address.
Method restricted to owner.
Parameters
newOwner
address
Address of the new owner.
totalSupply
function totalSupply() public view virtual returns (uint256)
Returns the total amount of issued tokens for this pool.
Return Values
[0]
uint256
Number of total issued tokens.
decimals
function decimals() public view virtual returns (uint8)
Returns token decimals.
Return Values
[0]
uint8
Uint8 number of decimals.
_getUnitaryValue
function _getUnitaryValue() internal view virtual returns (uint256)
_isContract
function _isContract(address target) private view returns (bool)
Last updated