Change the initial yang amount from 1000 to 10 ** (asset.decimals / 2) so as to mitigate against overflows when calculating the cumulative price in the event of donations.
This required the error margin for tests to be relaxed because of the increase in initial yang amount and their value.
See issue
Change the initial yang amount from
1000
to10 ** (asset.decimals / 2)
so as to mitigate against overflows when calculating the cumulative price in the event of donations.This required the error margin for tests to be relaxed because of the increase in initial yang amount and their value.