mirror of https://github.com/logos-co/staking.git
74ff357142
Unstaking didn't actually work because it was using `transferFrom()` on the `StakeVault` with the `from` address being the vault itself. This would result in an approval error because the vault isn't creating any approvals to spend its own funds. The solution is to use `transfer` instead and ensuring the return value is checked. |
||
---|---|---|
.. | ||
BrokenERC20.s.sol | ||
MockERC20.sol |