hop
hop copied to clipboard
hop-node: BondWithdrawalWatcher: Check bond amount doesn't exceed available amount on source chain. #409
- [x] checks amount to bond doesn't exceed amount available on L1SourceChainBalance+PendingAmount
- [x] send notification
@shanefontaine going to merge this if you think it looks good
@miguelmota I think this would not work in the case where a malicious person can mint unlimited hTokens (i.e. if the chain has a bug in it).
Because of this, we would need to check the chainBalance
from L1 along with the pending amount, and possibly other items as well.
👍 checking L1 balance makes sense now
I was confused about what chainBalance meant; I see that it's a public getter on the contract
Ready for review
Closing as stale