Refer to deposit address instead of dotID for qualfiication
@@ -14,7 +14,7 @@ contract VendingMachine {
/// @notice Qualifies a deposit for minting TBTC.
function qualifyDeposit(
- uint256 _depositId,
+ address _depositAddress,
bytes4 _txVersion,
bytes memory _txInputVector,
bytes memory _txOutputVector,
@@ -29,7 +29,7 @@ contract VendingMachine {
}
/// @notice Determines whether a deposit is qualified for minting TBTC.
- function isQualified(uint256 _depositId) public returns (bool) {
+ function isQualified(address _depositAddress) public returns (bool) {
// TODO
// This is stubbed out for prototyping, separate to the actual qualification logic.
// However we might remove it later.
@@ -38,12 +38,12 @@ contract VendingMachine {
/// @notice Pay back the deposit's TBTC and receive the Deposit Owner Token.
function tbtcToDot(uint256 _dotId) public {
- require(isQualified(_dotId), "Deposit must be qualified");
+ require(isQualified(address(_dotId)), "Deposit must be qualified");
}
/// @notice Trade in the Deposit Owner Token and mint TBTC.
function dotToTbtc(uint256 _dotId) public {
- require(isQualified(_dotId), "Deposit must be qualified");
+ require(isQualified(address(_dotId)), "Deposit must be qualified");
// TODO
}
}
\ No newline at end of file
