This PR makes the revert on initial deposit less strict. This now allows for an excess of tokens to be in the address in which the new bond will be deployed. Previously, if the address had tokens the bond creation would revert.
I added a test with some amount of collateral tokens added to the contract before initialization and a bond being created.
This PR makes the revert on initial deposit less strict. This now allows for an excess of tokens to be in the address in which the new bond will be deployed. Previously, if the address had tokens the bond creation would revert.
I added a test with some amount of collateral tokens added to the contract before initialization and a bond being created.