Skip to content

Commit 897034a

Browse files
razwwclaude
andcommitted
fix: dedupe IStakeManager.deposit after master merge
The branch's IStakeManager (and its mock) add deposit() that new master also declares — on the old base there was no clash, but rebased onto current master the two collide into a duplicate function definition that fails to compile. Remove the redundant declaration; a single deposit()/instantWithdraw() remains. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 193716e commit 897034a

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/provider/interfaces/IStakeManager.sol

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ interface IStakeManager {
99

1010
function convertSnBnbToBnb(uint256 _amountInSlisBnb) external view returns (uint256);
1111

12-
/// @notice Stake native BNB and mint slisBNB to the caller.
13-
function deposit() external payable;
14-
1512
/// @notice Instantly redeem slisBNB for native BNB (no unbonding cooldown), minus an
1613
/// instant-withdraw fee. The caller must approve `_amountInSlisBnb` to this contract.
1714
/// @return bnbAmount The native BNB sent to the caller.

test/moolah/mocks/MockStakeManager.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ contract MockStakeManager is IStakeManager {
2020
return (_amountInSlisBnb * 1e18) / exchangeRate;
2121
}
2222

23-
function deposit() external payable {}
24-
2523
function instantWithdraw(uint256) external pure returns (uint256) {
2624
return 0;
2725
}

0 commit comments

Comments
 (0)