Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: October 8, 2021

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 withdrawn)

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:

Name Type Description
owner address The address to approve from
spender address The address to be approved
amount uint256 The number of tokens that are approved (2^256-1 means infinite)
deadline uint256 The time at which to expire the signature
v uint8 The recovery byte of the signature
r bytes32 Half of the ECDSA signature pair
s bytes32 Half of the ECDSA signature pair
Questions or feedback? You can discuss issues and obtain free support on Yearn Vaults chat channel.
For SushiSwap community support, join the Discord Server None