Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tolya-yanot committed Mar 20, 2020
1 parent a8fec15 commit 57a63bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dex.fc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ int get_extra_currency(slice currency) {
is_token = 0;

throw_unless(100, msg_value >= from_value + 1000000000);
fee_value -= 1000000000;
fee_value = fee_value - from_value - 1000000000;
need_return_one_gram = 1;
}
int currency_id = get_extra_currency(from_currency);
Expand Down
3 changes: 2 additions & 1 deletion dex.fif
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ PROGRAM{
s1 s12 XCHG
GEQ
100 THROWIFNOT
s0 s3 XCHG
s3 s2 XCPU
SUB
1000000000 PUSHINT
SUB
1 PUSHINT
Expand Down

0 comments on commit 57a63bd

Please sign in to comment.