buttonwood-protocol / button-wrappers

Solidity code for the ButtonToken rebasing wrapper protocol
GNU General Public License v3.0
13 stars 10 forks source link

WIP Fix failing precision test #17

Closed aalavandhan closed 3 years ago

aalavandhan commented 3 years ago

exchangeRate needs to account for {msg.sender} bit balance to not over-calculate the conversion.

When going from {cAmount} to {amount} and {amount} to {cAmount'}; we want {cAmount'} <= {cAmount}