mirror of
https://github.com/logos-co/staking.git
synced 2025-01-09 18:25:56 +00:00
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.