ton-blockchain / stablecoin-contract

Sample code for centralised stablecoin jetton. TEP-74 and TEP-89 compatible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TON's return with incorrect data

skywardboundd opened this issue · comments

throw_unless(error::balance_error, balance >= 0);

Recently I saw a case that the developers of one DEX wrote the exchange crookedly, as a result, the user just took off tons (because just throw when sending a larger number of tokens than the user has), I suggest sending a message with tones back with mod 64.

Should be fixed on DEX side