Closed jcompagni10 closed 1 year ago
Withdraw from the pool - since amounts of tokens for pulling from the pool are calculated, they should always be rounded up.
@teddyknox am I missing something here? If we are removing tokens from the pool we should round down, no? ie. status quo is correct
All of these cases seem correct
CalcGreatestMatchingRatio Swap pool, CalcSharesMinted: since shares are calculated, we should always round down when issuing shares to users. Withdraw from the pool - since amounts of tokens for pulling from the pool are calculated, they should always be rounded up.