aurora-is-near / rainbow-bridge-client

Monorepo containing Aurora-maintained libraries for using the Rainbow Bridge
https://github.com/near/rainbow-bridge-client/tree/main/packages/client#readme
MIT License
25 stars 7 forks source link

fix: reduce mint deposit 10x #17

Closed chadoh closed 3 years ago

chadoh commented 3 years ago

The faucet at https://faucet.paras.id/ only mints slightly more than 0.006Ⓝ

The current Rainbow Bridge frontend deposits 10x that amount, 0.06Ⓝ, when minting fungible tokens in NEAR

The storage cost in NEAR went down 10x since the frontend logic was first written

We need to decrease this deposit amount to match what is minted by the Paras faucet

alexauroradev commented 3 years ago

@chadoh , however the FT contract also changed, so it's not clear what is the required deposit. How can we test this?

chadoh commented 3 years ago

rainbow-token-connector lowered STORAGE_PRICE_PER_BYTE in the BridgeTokenFactory contract by 10x here: https://github.com/near/rainbow-token-connector/commit/d6022357#diff-cfd7c39c7ef3701d6b25636f921277b37589d069bf06c5e5695d4ad8824af845R22

I assume the Paras Faucet was configured based on the actual deposit needed, which is why it is perfectly 10x less than what the frontend attaches.

chadoh commented 3 years ago

@djsatok once I get NPM access to publish this package I can update the frontend and test it on testnet before deploying. I will then immediately test on mainnet and make any needed adjustments.