Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

FT Token: Decrease storage deposit requirements 10x #169

Open mfornet opened 2 years ago

mfornet commented 2 years ago

Users of the Bridge Tokens need to deposit NEAR tokens in advance before being able to interact with the contract. (I.e receive / transfer funds). The deposit amount is computed using the old STORAGE_PRICE_PER_BYTE, while it was decreased 10x.

This value is hardcoded in the fungible token dependency. We need to update the dependency to make sure the storage price per byte is computed using the new value. In particular, a host function can be used to this end to get the most recent value.