๐Ÿ“ฅSetup entrypionts

Used only when initializing contract

This section describes entrypoints that are used for setting up lambda functions of the yToken contract to storage.

For storing this codebase we pack each function with func=Bytes.pack(yTokenFunctionName) and set each bytes to the corresponding index.

Each index could be setted only once

Call params type

type setUseParams       is [@layout:comb] record [
  index                   : nat;
  func                    : nat;
]

FA2 token actions

This entrypoint sets FA2(TZIP-12) functions to storage of contract.

pagesetTokenAction

"Use" actions

"Use" actions contain the main methods of lending contract. This entrypoint sets them.

pagesetUseAction

Last updated