Skip to content

Commit

Permalink
minor fix in rocketpool
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashika Goyal committed Dec 20, 2023
1 parent 6f6b283 commit d8591c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pragma solidity 0.8.18;

interface IRocketDepositPool {
function deposit() external payable;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {IRocketDepositPool} from "./Interfaces.sol";
import {RouterIntentAdapter, Errors} from "router-intents/contracts/RouterIntentAdapter.sol";
import {NitroMessageHandler} from "router-intents/contracts/NitroMessageHandler.sol";
import {IERC20, SafeERC20} from "../../../utils/SafeERC20.sol";
import {console} from "hardhat/console.sol";

/**
* @title RPStakeEth
Expand Down Expand Up @@ -114,16 +113,12 @@ contract RPStakeEth is RouterIntentAdapter, NitroMessageHandler {
address _recipient,
uint256 _amount
) internal returns (address[] memory tokens, bytes memory logData) {
console.log(_amount);
console.log(address(this).balance);
_rocketDepositPool.deposit{value: _amount}();
uint256 _receivedREth = withdrawTokens(
_rEth,
_recipient,
type(uint256).max
);

console.log("log4");
_rEth,
_recipient,
type(uint256).max
);

tokens = new address[](2);
tokens[0] = native();
Expand Down

0 comments on commit d8591c2

Please sign in to comment.