You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can get a rounding error when executing function transfer or function burnSharesFrom from the contract TapETH, when the input _tokenAmount is small.
Exemple
let's consider the following exemple:
totalSupply: 189804710086258501256 wei
totalShares: 189804710086258501256 wei
The Balance of Bob in tapETH is 0 wei.
Alice sends25 *10^18 weitapEth to Bob. Bob receives 24999999999999999999 wei tapETH. So, there is a rounding error of 1 wei tapETH.
Now, Bob burns his total balance of tapETH (24999999999999999999 wei). Bob keeps 1 wei tapETH and 1 wei shares. So, there is a rounding error of 1 wei.
The text was updated successfully, but these errors were encountered:
One can get a rounding error when executing function
transfer
or functionburnSharesFrom
from the contractTapETH,
when the input_tokenAmount
is small.Exemple
let's consider the following exemple:
totalSupply:
189804710086258501256 wei
totalShares: 1
89804710086258501256 wei
The Balance of Bob in tapETH is
0 wei
.Alice sends
25 *10^18 wei
tapEth to Bob. Bob receives24999999999999999999 wei tapETH
. So, there is a rounding error of 1 wei tapETH.
Now, Bob burns his total balance of tapETH (
24999999999999999999 wei
). Bob keeps1 wei tapETH
and 1 wei shares.So, there is a rounding error of 1 wei.
The text was updated successfully, but these errors were encountered: