UnUniFi / chain

GNU General Public License v3.0
33 stars 14 forks source link

Initial Share Too Large #727

Closed Senna46 closed 9 months ago

Senna46 commented 10 months ago

This is the initial share amount for the initial pool deposit.

var (
    // OneShare represents the amount of subshares in a single pool share.
    OneShare = sdk.NewIntFromBigInt(sdk.OneDec().BigInt())
)

10^12 LP is sent to the initial deposit user.

This is too large and introduces many calculation errors. The initial value should be about 10^6 or equal to the amount of Deposited UT or PT.

Senna46 commented 9 months ago

Temp ~Set 1_000_000 utoken for initial deposit~

Senna46 commented 9 months ago

Revert to use sdk.OneDec() to match Osmosis implements