-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of two parms: - `vault`- `requestRedemption` is exposed on `TBTCToken` and there is no other choice than working with `TBTCVault` contract for this interaction. We should limit the surface of developer errors- we can resolve the `vault` address in the `TBTCToken` handle implementation from the `TBTCTokenContract.owner()` call. - `redeemer`- we can get the address from the contract instance using `this._instance.signer.getAddress()`. The `TBTCToken` contract always passes `msg.sender` to the `receiveApproval` fn so it's not possible to request redemption for someone else using approve and call pattern.
- Loading branch information
1 parent
b5190e1
commit 06601b9
Showing
5 changed files
with
72 additions
and
75 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
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