ton-blockchain / minter-contract

Jetton Deployer FunC Smart Contracts
http://jetton.live
MIT License
245 stars 147 forks source link

Logic error in smart contract #41

Open ershov-ilya opened 1 year ago

ershov-ilya commented 1 year ago

At the time of mint jettons, if you set the "Decimals" value to 0. Fund transfers are expected to be integer only.

But if you sending 1 jetton to a reciver - in TON keeper incoming transactions contains +0.000000001 of minted Jettons. And when you try send it to somebody else - you may choose only integer number, and can't set the real balance amount. So jettons are stuck in wallet.

Thus option "Decimals" is useless, and the contract can only work properly if the value is 9

iafilin commented 1 year ago

I think I was a problem with a similar problem. Set a decimal number as 2, I can't send with, get a mistake in TonKeeper "not enough funds".

Sorry for bad English.