Fix unstake() error when defer transaction is failed.
Opened this issue · 0 comments
lychees commented
You can refer to
https://github.com/Dapp-rosetta/dapp-rosetta/tree/master/Contract/EOS/payout
for detailed.
- Add singleton_refunds table.
- Add refund() function.
- Modify unstake() logic to use refund() function.
Be careful that this repo is using a deprecated version of eosiocpp.
We should first fix this issue then update the version.