Skip to content

Commit

Permalink
Update TaikoL1.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jul 4, 2024
1 parent 47e9fdc commit 92c7041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,18 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents, TaikoErrors {
LibVerifying.verifyBlocks(state, getConfig(), this, _maxBlocksToVerify);
}

/// @inheritdoc ITaikoL1
function depositBond(uint256 _amount) external {
LibBonds.depositBond(state, this, _amount);
}

/// @inheritdoc ITaikoL1
function withdrawBond(uint256 _amount) external {
LibBonds.withdrawBond(state, this, _amount);
}

/// @notice Gets the current bond balance of a given address.
/// @return The current bond balance.
function bondBalanceOf(address _user) external view returns (uint256) {
return LibBonds.bondBalanceOf(state, _user);
}
Expand Down

0 comments on commit 92c7041

Please sign in to comment.