Skip to content

Commit

Permalink
token to token refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
KStasi committed Jun 16, 2021
1 parent a9b4ecd commit f612ba1
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 244 deletions.
6 changes: 3 additions & 3 deletions contracts/partials/ITTDex.ligo
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ type token_identifier_fa12 is address
type transfer_type_fa12 is TransferTypeFA12 of token_transfer_params_fa12
type transfer_type_fa2 is TransferTypeFA2 of token_transfer_params_fa2

type pair_type is
type token_type is
| Fa12
| Fa2
| Mixed

type pair_info is record [
token_a_pool : nat; (* tez reserves in the pool *)
Expand All @@ -34,7 +33,8 @@ type tokens_info is record [
token_b_address : address;
token_a_id : nat;
token_b_id : nat;
standard : pair_type;
token_a_type : token_type;
token_b_type : token_type;
]

type token_pair is bytes
Expand Down
Loading

0 comments on commit f612ba1

Please sign in to comment.