-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
findWalletForRedemption
function
Take into account pending redemptions value- say Say the wallet has `100 BTC`, redemptions are processed every 3 hours, and so far, requests for `93 BTC` has been registered in the Bridge. Based on the previous version of the code, that wallet would still be selected for all redemptions `<= 100 BTC` and the transaction to Ethereum requesting redemption higher than `7 BTC` would fail. This commit fixes that issue.
- Loading branch information
1 parent
b86e251
commit 9a0f289
Showing
3 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters