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

NameTypeDescription

feeCollector

address

Address of the fee receiver.

changeMinPeriod

function changeMinPeriod(uint48 minPeriod) external

Allows pool owner to change the minimum holding period.

Parameters

NameTypeDescription

minPeriod

uint48

Time in seconds.

changeSpread

function changeSpread(uint16 newSpread) external

Allows pool owner to change the mint/burn spread.

Parameters

NameTypeDescription

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

NameTypeDescription

kycProvider

address

Address if the kyc provider.

setTransactionFee

function setTransactionFee(uint16 transactionFee) external

Allows pool owner to set the transaction fee.

Parameters

NameTypeDescription

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

NameTypeDescription

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

NameTypeDescription

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

NameTypeDescription

[0]

uint256

Number of total issued tokens.

decimals

function decimals() public view virtual returns (uint8)

Returns token decimals.

Return Values

NameTypeDescription

[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