crossclaim / xclaim-sol

XCLAIM(BTC,ETH): Solidity implementation for Bitcoin backed tokens on Ethereum
https://xclaim.io/
GNU General Public License v3.0
24 stars 8 forks source link

requestRedeem - specify vault and check if it has sufficient funds #17

Open alexeiZamyatin opened 5 years ago

alexeiZamyatin commented 5 years ago

Currently, no vault specified when making a redeem request.

Problem: vaults can prevent users from redeeming funds if they do not react -> however, we will not know who to punish.

Fix: add vault address as parameter.

Check required: does vault have sufficient funds?