Skip to content

Commit

Permalink
Expose tbtcToken from the ITBTCVault interface
Browse files Browse the repository at this point in the history
This will be useful to get TBTC token address directly from the vault
contract.
  • Loading branch information
lukasz-zimnoch committed Feb 29, 2024
1 parent df436e1 commit 34971b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions solidity/contracts/integrator/ITBTCVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ interface ITBTCVault {

/// @dev See {TBTCVault#optimisticMintingFeeDivisor}
function optimisticMintingFeeDivisor() external view returns (uint32);

/// @dev See {TBTCVault#tbtcToken}
function tbtcToken() external view returns (address);
}
4 changes: 4 additions & 0 deletions solidity/contracts/test/TestTBTCDepositor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,8 @@ contract MockTBTCVault is ITBTCVault {
function setOptimisticMintingFeeDivisor(uint32 value) external {
optimisticMintingFeeDivisor = value;
}

function tbtcToken() external view returns (address) {
revert("Not implemented");
}
}

0 comments on commit 34971b0

Please sign in to comment.