Skip to content

chore: Rename claim yield function #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/BlastERC20RebasingYield.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract BlastERC20RebasingYield is BlastNativeYield {
* @param wethReceiver The receiver of WETH.
* @param usdbReceiver The receiver of USDB.
*/
function _claim(address wethReceiver, address usdbReceiver) internal {
function _claimERC20RebasingYield(address wethReceiver, address usdbReceiver) internal {
uint256 claimableWETH = IERC20Rebasing(WETH).getClaimableAmount(address(this));
if (claimableWETH != 0) {
IERC20Rebasing(WETH).claim(wethReceiver, claimableWETH);
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/BlastERC20RebasingYield.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ contract BlastERC20RebasingYieldGuarded is BlastERC20RebasingYield, OwnableTwoSt
{}

function claim(address wethReceiver, address usdbReceiver) public onlyOwner {
_claim(wethReceiver, usdbReceiver);
_claimERC20RebasingYield(wethReceiver, usdbReceiver);
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/mock/MockBlastERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.23;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import {YieldMode} from "../../../contracts/interfaces/IERC20Rebasing.sol";
import {YieldMode} from "../../contracts/interfaces/IERC20Rebasing.sol";

contract MockBlastERC20 is ERC20 {
mapping(address _contract => YieldMode) public yieldMode;
Expand Down
2 changes: 1 addition & 1 deletion test/mock/MockBlastWETH.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {YieldMode} from "../../../contracts/interfaces/IERC20Rebasing.sol";
import {YieldMode} from "../../contracts/interfaces/IERC20Rebasing.sol";

contract MockBlastWETH {
string public name = "Wrapped Ether";
Expand Down
2 changes: 1 addition & 1 deletion test/mock/MockBlastYield.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {YieldMode, GasMode} from "../../../contracts/interfaces/IBlast.sol";
import {YieldMode, GasMode} from "../../contracts/interfaces/IBlast.sol";

contract MockBlastYield {
struct Config {
Expand Down
Loading