ref-finance / ref-contracts

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

BUG: if FT withdraw fails money no longer associated with a user #13

Closed mehtaphysical closed 3 years ago

mehtaphysical commented 3 years ago

See this transaction: https://explorer.near.org/transactions/BMJ1y25EccqtsXraUsfuMTX9mVBo3DqPXfpQyHsiuquu.

If the withdraw fails, the tokens that were attempted to withdraw are kept in the contract but are no longer associated with the users account.

We fixed this on the front end: https://github.com/ref-finance/ref-ui/pull/28

But probably want to fix this in the contract as well.