ref-finance / ref-contracts

Smart contracts for Ref Finance
MIT License
96 stars 55 forks source link

Storage deposit always enforces minimum deposit (even after registration) #12

Closed mehtaphysical closed 3 years ago

mehtaphysical commented 3 years ago

After a user is registered they should be able to deposit amounts smaller than the Account::min_storage_usage.

Right now it costs 800000000000000000000 to hold a token, but the minimum allowed to deposit is 840000000000000000000. Meaning that you have to over deposit to hold an additional token.

https://explorer.near.org/transactions/2Qcph7Kc1kC4ifshN1q6cTdhto9XRjj8G8d93CJyA2ZK

ilblackdragon commented 3 years ago

Yep, that seems like a bug to fix.

robert-zaremba commented 3 years ago

I have few changes of the AccountDeposit, which fixes this.