primeradiant / MetaMoneyMarket

Maximize your interest rates
http://metamoneymarket.com
MIT License
33 stars 15 forks source link

A user is able to withdraw with a balance of 0 on deposit. #76

Closed kingjacob closed 4 years ago

kingjacob commented 5 years ago

Description

A user is able to withdraw with 0 tokenshares in their wallet

You would expect Max Dai to withdraw ALL of the dai, or the UI to not allow withdrawals if there are no token shares present.

Steps to reproduce

  1. Deposit 1 Dai
  2. Withdraw Max Dai
  3. Withdraw 0 Dai

Which network did you use?

MainNet

Supporting data

https://etherscan.io/tx/0x4b3ad237830633cf12626b4c49a62645879c617c837373dea8a685b62eb8e290

kingjacob commented 4 years ago

84 closes this.