launch_callback

An additional entrypoint that helps to vote in Bucket contract for a user's baker in time of the first TOK/TEZ exchange launch.

Call parameters

type vote_t             is [@layout:comb] record [
  voter                   : address;
  candidate               : key_hash;
  execute_voting          : bool;
  votes                   : nat;
]

type launch_callback_t  is [@layout:comb] record [
  vote_params             : vote_t;
  bucket                  : address;
]

vote_t

FieldTypeDescription

voter

address

A user who votes

candidate

key_hash

Baker the user votes for

execute_voting

bool

Flag that indicates: execute voting or not

votes

nat

Amount of votes that will be used for voting

launch_callback_t

FieldTypeDescription

vote_params

Voting parameters

bucket

address

Bucket contract address where need to execute voting

Usage

Only DexCore contract can call this entrypoint.

Errors

  • 138 - only entered (transaction must be not the first transaction in the chain of calls).

  • 403 - sender of the transaction is not DexCore contract.

  • 412 - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).

Last updated