๐Ÿ“–
Yupana Document Portal
  • Introduction
    • What is Yupana.Finance?
    • Participants
    • FAQ
  • Lending
    • Supplying assets
      • General
    • Borrowing assets
      • General
  • Liquidation
  • Liquidity Risk
    • Yupana Interest Rate
  • โš™๏ธDeveloper space
    • yToken contract methods
      • ๐Ÿ“„Storage overview
      • accrueInterest
      • priceCallback
      • updateInterest
      • ๐Ÿ”ตLending methods
        • borrow
        • enterMarket
        • exitMarket
        • liquidate
        • mint
        • redeem
        • repay
      • ๐Ÿ”ตFA2 Token entrypoints
        • balance_of
        • get_total_supply
        • transfer
        • update_operators
      • ๐Ÿ›‘Admin methods
        • ๐Ÿ“ฅSetup entrypionts
          • setTokenAction
          • setUseAction
        • ๐ŸคนManage entrypoints
          • addMarket
          • setAdmin
          • setBorrowPause
          • setGlobalFactors
          • setTokenFactors
          • updateMetadata
          • withdrawReserve
    • InterestRate contract
      • ๐Ÿ”ตOn-chain views
        • getBorrowRate
        • getSupplyRate
        • getUtilizationRate
      • ๐Ÿ›‘Admin methods
        • setCoefficients
        • updateAdmin
    • PriceFeed contract
      • getPrice
      • receivePrice
      • ๐Ÿ›‘Admin methods
        • setProxyAdmin
        • updateOracle
        • updatePair
        • updateYToken
  • Agreements
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
Powered by GitBook
On this page
  • Entrypoints
  • General errors
  1. Developer space
  2. yToken contract methods

FA2 Token entrypoints

TZIP-12 standard implementation

PreviousrepayNextbalance_of

Last updated 3 years ago

This section has an explanation about using yToken tokens.

Each market has related token and it's ID. It allows users to operate their liquidity as one of yTokens that bound to lending market.

Entrypoints

transfer

Allows transfer batch (list) of token transfers. Each transfer in the batch is specified between one source (from_) address and a list of destinations. Each destination specifies token_id, the amount to be transferred from the source and address of the destination (to_).

update_operators

FA2 interface an entrypoint to update operators. Operators are permitted per specific token owner and token ID (token_id). Once permitted, an operator can transfer tokens of that type belonging to the owner. To update own tokens operators user should use update_oprators call.

balance_of

Gets the balance of multiple account/token pairs. Accepts a list of balance_of_requests (token_id and owner) and a callback contract callback which accepts a list of balance_of_response (balance_of_request and requested balance) records.

get_total_supply

Gets total supply of token by it's token_id and sends a callback with value to received contract callback which accepts a nat (natural number).

General errors

  • yToken/token-lambda-not-set - lambda of called entrypoint is not set yet.

  • cant-unpack-token-lambda - lambda bytes of function is broken.

โš™๏ธ
๐Ÿ”ต
transfer
specifies
update_operators
balance_of
get_total_supply