Skip to main content

AffiliateToken

Functions

constructor

  function constructor(
) public

_getChainId

  function _getChainId(
) internal returns (uint256)

setAffiliate

  function setAffiliate(
) external

acceptAffiliate

  function acceptAffiliate(
) external

_shareValue

  function _shareValue(
) internal returns (uint256)

pricePerShare

  function pricePerShare(
) external returns (uint256)

_sharesForValue

  function _sharesForValue(
) internal returns (uint256)

deposit

  function deposit(
) external returns (uint256)

deposit

  function deposit(
) public returns (uint256 deposited)

withdraw

  function withdraw(
) external returns (uint256)

withdraw

  function withdraw(
) public returns (uint256)

migrate

  function migrate(
) external returns (uint256)

migrate

  function migrate(
) external returns (uint256)

migrate

  function migrate(
) external returns (uint256)

permit

  function permit(
address owner,
address spender,
uint256 amount,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external

Triggers an approval from owner to spends

Parameters:

NameTypeDescription
owneraddressThe address to approve from
spenderaddressThe address to be approved
amountuint256The number of tokens that are approved (2^256-1 means infinite)
deadlineuint256The time at which to expire the signature
vuint8The recovery byte of the signature
rbytes32Half of the ECDSA signature pair
sbytes32Half of the ECDSA signature pair