More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 6,203 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit Rs ETH | 21588051 | 2 hrs ago | IN | 0 ETH | 0.00260036 | ||||
Deposit Rs ETH | 21585981 | 9 hrs ago | IN | 0 ETH | 0.00072475 | ||||
Get RSETH With E... | 21585976 | 9 hrs ago | IN | 0 ETH | 0.00568229 | ||||
Deposit Rs ETH | 21585463 | 11 hrs ago | IN | 0 ETH | 0.00062692 | ||||
Get RSETH With E... | 21583916 | 16 hrs ago | IN | 0.3 ETH | 0.0046268 | ||||
Deposit Rs ETH | 21582573 | 20 hrs ago | IN | 0 ETH | 0.00098993 | ||||
Get RSETH With E... | 21582281 | 21 hrs ago | IN | 0.001 ETH | 0.00449828 | ||||
Deposit Rs ETH | 21582245 | 21 hrs ago | IN | 0 ETH | 0.00126972 | ||||
Deposit Rs ETH | 21582217 | 22 hrs ago | IN | 0 ETH | 0.00159853 | ||||
Deposit Rs ETH | 21580546 | 27 hrs ago | IN | 0 ETH | 0.00206723 | ||||
Deposit Rs ETH | 21578787 | 33 hrs ago | IN | 0 ETH | 0.00083897 | ||||
Get RSETH With E... | 21577166 | 38 hrs ago | IN | 0.09 ETH | 0.00373134 | ||||
Get RSETH With E... | 21576722 | 40 hrs ago | IN | 5 ETH | 0.00321306 | ||||
Deposit Rs ETH | 21576256 | 42 hrs ago | IN | 0 ETH | 0.00101945 | ||||
Deposit Rs ETH | 21572077 | 2 days ago | IN | 0 ETH | 0.00082968 | ||||
Get RSETH With E... | 21571942 | 2 days ago | IN | 1.378 ETH | 0.00445317 | ||||
Get RSETH With E... | 21571835 | 2 days ago | IN | 29.825 ETH | 0.00428294 | ||||
Get RSETH With E... | 21571562 | 2 days ago | IN | 0.5 ETH | 0.0045128 | ||||
Deposit Rs ETH | 21571475 | 2 days ago | IN | 0 ETH | 0.00098202 | ||||
Deposit Rs ETH | 21571138 | 2 days ago | IN | 0 ETH | 0.00076981 | ||||
Deposit Rs ETH | 21568068 | 2 days ago | IN | 0 ETH | 0.00259186 | ||||
Deposit Rs ETH | 21567887 | 2 days ago | IN | 0 ETH | 0.00270135 | ||||
Transfer | 21565671 | 3 days ago | IN | 0.000199 ETH | 0.00021941 | ||||
Get RSETH With E... | 21565661 | 3 days ago | IN | 199.99 ETH | 0.00665588 | ||||
Get RSETH With E... | 21564647 | 3 days ago | IN | 2 ETH | 0.00620505 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
21588051 | 2 hrs ago | 0 ETH | |||||
21588051 | 2 hrs ago | 0 ETH | |||||
21588051 | 2 hrs ago | 0 ETH | |||||
21588051 | 2 hrs ago | 0 ETH | |||||
21585981 | 9 hrs ago | 0 ETH | |||||
21585981 | 9 hrs ago | 0 ETH | |||||
21585981 | 9 hrs ago | 0 ETH | |||||
21585981 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585976 | 9 hrs ago | 0 ETH | |||||
21585463 | 11 hrs ago | 0 ETH | |||||
21585463 | 11 hrs ago | 0 ETH | |||||
21585463 | 11 hrs ago | 0 ETH | |||||
21585463 | 11 hrs ago | 0 ETH | |||||
21583916 | 16 hrs ago | 0 ETH | |||||
21583916 | 16 hrs ago | 0 ETH | |||||
21583916 | 16 hrs ago | 0 ETH | |||||
21583916 | 16 hrs ago | 0.3 ETH | |||||
21583916 | 16 hrs ago | 0 ETH | |||||
21582573 | 20 hrs ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
RSETHAdapter
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.25; interface ILRTDepositPool { function depositAsset( address asset, uint256 depositAmount, uint256 minRSETHAmountExpected, string calldata referralId ) external; function depositETH(uint256 minRSETHAmountExpected, string calldata referralId) external payable; function getRsETHAmountToMint(address asset, uint256 depositAmount) external view returns (uint256); } interface IERC4626 { function deposit(uint256 assets, address receiver) external; } interface IERC20 { function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function balanceOf(address account) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); } /// @title RSETHAdapter /// @notice This contract facilitates the minting of RSETH using either ETH or ERC20 assets and deposits the minted RSETH into a vault on behalf of the user. contract RSETHAdapter { ILRTDepositPool public immutable lrtDepositPool; IERC4626 public immutable vault; IERC20 public immutable rsETH; event RSETHMintedAndDepositedInVault(address indexed user, uint256 rsETHAmount, string refferalId); /// @notice Constructs the RSETHAdapter contract. /// @param _lrtDepositPool Address of the LRTDepositPool contract. /// @param _vault Address of the Vault contract. /// @param _rsETH Address of the RSETH token contract. constructor(ILRTDepositPool _lrtDepositPool, IERC4626 _vault, IERC20 _rsETH) { lrtDepositPool = _lrtDepositPool; vault = _vault; rsETH = _rsETH; } /// @notice deposit rsETH directly to the vault /// @param rsETHAmount Amount of rsETH to deposit /// @param referralId Referral ID for the deposit. function depositRsETH(uint256 rsETHAmount, string calldata referralId) external { rsETH.transferFrom(msg.sender, address(this), rsETHAmount); _depositRSETHInVaultForUser(referralId); } /// @notice Mints RSETH using ETH and deposits it into the vault for the user. /// @param referralId Referral ID for the deposit. function getRSETHWithETH(string calldata referralId) external payable { address kelpDaoETHAssetId = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; uint256 minRSETHAmountExpected = lrtDepositPool.getRsETHAmountToMint(kelpDaoETHAssetId, msg.value); lrtDepositPool.depositETH{value: msg.value}(minRSETHAmountExpected, referralId); _depositRSETHInVaultForUser(referralId); } /// @notice Mints RSETH using an ERC20 asset accepted by Kelp and deposits it into the vault for the user. /// @dev The user must approve the RSETHAdapter contract to spend the ERC20 asset. /// @dev it will revert if the asset is not allowed to be deposited in Kelp LRTDepositPool. /// @param asset Address of the ERC20 asset to be deposited. /// @param depositAmount Amount of the ERC20 asset to be deposited. /// @param referralId Referral ID for the deposit. function getRSETHWithERC20(address asset, uint256 depositAmount, string calldata referralId) external { IERC20(asset).transferFrom(msg.sender, address(this), depositAmount); uint256 minRSETHAmountExpected = lrtDepositPool.getRsETHAmountToMint(asset, depositAmount); IERC20(asset).approve(address(lrtDepositPool), depositAmount); lrtDepositPool.depositAsset(asset, depositAmount, minRSETHAmountExpected, referralId); _depositRSETHInVaultForUser(referralId); } /// @notice Deposits the minted RSETH into the vault for the user. function _depositRSETHInVaultForUser(string calldata referralId) private { uint256 rsETHAmountMinted = rsETH.balanceOf(address(this)); rsETH.approve(address(vault), rsETHAmountMinted); vault.deposit(rsETHAmountMinted, msg.sender); emit RSETHMintedAndDepositedInVault(msg.sender, rsETHAmountMinted, referralId); } }
{ "remappings": [ "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "cancun", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ILRTDepositPool","name":"_lrtDepositPool","type":"address"},{"internalType":"contract IERC4626","name":"_vault","type":"address"},{"internalType":"contract IERC20","name":"_rsETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rsETHAmount","type":"uint256"},{"indexed":false,"internalType":"string","name":"refferalId","type":"string"}],"name":"RSETHMintedAndDepositedInVault","type":"event"},{"inputs":[{"internalType":"uint256","name":"rsETHAmount","type":"uint256"},{"internalType":"string","name":"referralId","type":"string"}],"name":"depositRsETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"string","name":"referralId","type":"string"}],"name":"getRSETHWithERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"referralId","type":"string"}],"name":"getRSETHWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"lrtDepositPool","outputs":[{"internalType":"contract ILRTDepositPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rsETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract IERC4626","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405234801561000f575f80fd5b50604051610aa9380380610aa983398101604081905261002e91610062565b6001600160a01b0392831660805290821660a0521660c0526100ac565b6001600160a01b038116811461005f575f80fd5b50565b5f805f60608486031215610074575f80fd5b835161007f8161004b565b60208501519093506100908161004b565b60408501519092506100a18161004b565b809150509250925092565b60805160a05160c05161098f61011a5f395f81816068015281816102b70152818161057f015261063901525f818161013d0152818161060701526106c201525f818160b70152818161019301528181610208015281816103d60152818161045801526104ed015261098f5ff3fe608060405260043610610053575f3560e01c8062b83bce1461005757806335b6d1ba146100a65780634e3c04bd146100d9578063b8aa0db9146100ee578063e8c3516b1461010d578063fbfa77cf1461012c575b5f80fd5b348015610062575f80fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100b1575f80fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b6100ec6100e73660046107b0565b61015f565b005b3480156100f9575f80fd5b506100ec6101083660046107ef565b610295565b348015610118575f80fd5b506100ec610127366004610837565b610339565b348015610137575f80fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b604051635d2dda2160e11b815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60048201819052346024830152905f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ba5bb44290604401602060405180830381865afa1580156101e0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610204919061089a565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166372c51c0b348387876040518563ffffffff1660e01b8152600401610257939291906108d9565b5f604051808303818588803b15801561026e575f80fd5b505af1158015610280573d5f803e3d5ffd5b505050505061028f8484610568565b50505050565b6040516323b872dd60e01b8152336004820152306024820152604481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303815f875af1158015610305573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061032991906108fb565b506103348282610568565b505050565b6040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b038516906323b872dd906064016020604051808303815f875af1158015610389573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ad91906108fb565b50604051635d2dda2160e11b81526001600160a01b038581166004830152602482018590525f917f00000000000000000000000000000000000000000000000000000000000000009091169063ba5bb44290604401602060405180830381865afa15801561041d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610441919061089a565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018790529192509086169063095ea7b3906044016020604051808303815f875af11580156104b1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d591906108fb565b506040516361d70bb360e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c3ae17669061052a9088908890869089908990600401610921565b5f604051808303815f87803b158015610541575f80fd5b505af1158015610553573d5f803e3d5ffd5b505050506105618383610568565b5050505050565b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156105cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f0919061089a565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390529192507f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b3906044016020604051808303815f875af1158015610681573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106a591906108fb565b50604051636e553f6560e01b8152600481018290523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636e553f65906044015f604051808303815f87803b15801561070b575f80fd5b505af115801561071d573d5f803e3d5ffd5b50505050336001600160a01b03167f923524dae4655b2102c7d6ae2f26f55b67ad1e57e6690baec8bb4bcbb6911dd582858560405161075e939291906108d9565b60405180910390a2505050565b5f8083601f84011261077b575f80fd5b50813567ffffffffffffffff811115610792575f80fd5b6020830191508360208285010111156107a9575f80fd5b9250929050565b5f80602083850312156107c1575f80fd5b823567ffffffffffffffff8111156107d7575f80fd5b6107e38582860161076b565b90969095509350505050565b5f805f60408486031215610801575f80fd5b83359250602084013567ffffffffffffffff81111561081e575f80fd5b61082a8682870161076b565b9497909650939450505050565b5f805f806060858703121561084a575f80fd5b84356001600160a01b0381168114610860575f80fd5b935060208501359250604085013567ffffffffffffffff811115610882575f80fd5b61088e8782880161076b565b95989497509550505050565b5f602082840312156108aa575f80fd5b5051919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b838152604060208201525f6108f26040830184866108b1565b95945050505050565b5f6020828403121561090b575f80fd5b8151801515811461091a575f80fd5b9392505050565b60018060a01b0386168152846020820152836040820152608060608201525f61094e6080830184866108b1565b97965050505050505056fea2646970667358221220cc75bf689f7106ef6d07dc12a3d2c16b504ca809b78345212b3fbaf2fac4cceb64736f6c63430008190033000000000000000000000000036676389e48133b63a802f8635ad39e752d375d000000000000000000000000e1b4d34e8754600962cd944b535180bd758e6c2e000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a7
Deployed Bytecode
0x608060405260043610610053575f3560e01c8062b83bce1461005757806335b6d1ba146100a65780634e3c04bd146100d9578063b8aa0db9146100ee578063e8c3516b1461010d578063fbfa77cf1461012c575b5f80fd5b348015610062575f80fd5b5061008a7f000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a781565b6040516001600160a01b03909116815260200160405180910390f35b3480156100b1575f80fd5b5061008a7f000000000000000000000000036676389e48133b63a802f8635ad39e752d375d81565b6100ec6100e73660046107b0565b61015f565b005b3480156100f9575f80fd5b506100ec6101083660046107ef565b610295565b348015610118575f80fd5b506100ec610127366004610837565b610339565b348015610137575f80fd5b5061008a7f000000000000000000000000e1b4d34e8754600962cd944b535180bd758e6c2e81565b604051635d2dda2160e11b815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60048201819052346024830152905f907f000000000000000000000000036676389e48133b63a802f8635ad39e752d375d6001600160a01b03169063ba5bb44290604401602060405180830381865afa1580156101e0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610204919061089a565b90507f000000000000000000000000036676389e48133b63a802f8635ad39e752d375d6001600160a01b03166372c51c0b348387876040518563ffffffff1660e01b8152600401610257939291906108d9565b5f604051808303818588803b15801561026e575f80fd5b505af1158015610280573d5f803e3d5ffd5b505050505061028f8484610568565b50505050565b6040516323b872dd60e01b8152336004820152306024820152604481018490527f000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a76001600160a01b0316906323b872dd906064016020604051808303815f875af1158015610305573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061032991906108fb565b506103348282610568565b505050565b6040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b038516906323b872dd906064016020604051808303815f875af1158015610389573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ad91906108fb565b50604051635d2dda2160e11b81526001600160a01b038581166004830152602482018590525f917f000000000000000000000000036676389e48133b63a802f8635ad39e752d375d9091169063ba5bb44290604401602060405180830381865afa15801561041d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610441919061089a565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000036676389e48133b63a802f8635ad39e752d375d81166004830152602482018790529192509086169063095ea7b3906044016020604051808303815f875af11580156104b1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d591906108fb565b506040516361d70bb360e11b81526001600160a01b037f000000000000000000000000036676389e48133b63a802f8635ad39e752d375d169063c3ae17669061052a9088908890869089908990600401610921565b5f604051808303815f87803b158015610541575f80fd5b505af1158015610553573d5f803e3d5ffd5b505050506105618383610568565b5050505050565b6040516370a0823160e01b81523060048201525f907f000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a76001600160a01b0316906370a0823190602401602060405180830381865afa1580156105cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f0919061089a565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000e1b4d34e8754600962cd944b535180bd758e6c2e81166004830152602482018390529192507f000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a79091169063095ea7b3906044016020604051808303815f875af1158015610681573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106a591906108fb565b50604051636e553f6560e01b8152600481018290523360248201527f000000000000000000000000e1b4d34e8754600962cd944b535180bd758e6c2e6001600160a01b031690636e553f65906044015f604051808303815f87803b15801561070b575f80fd5b505af115801561071d573d5f803e3d5ffd5b50505050336001600160a01b03167f923524dae4655b2102c7d6ae2f26f55b67ad1e57e6690baec8bb4bcbb6911dd582858560405161075e939291906108d9565b60405180910390a2505050565b5f8083601f84011261077b575f80fd5b50813567ffffffffffffffff811115610792575f80fd5b6020830191508360208285010111156107a9575f80fd5b9250929050565b5f80602083850312156107c1575f80fd5b823567ffffffffffffffff8111156107d7575f80fd5b6107e38582860161076b565b90969095509350505050565b5f805f60408486031215610801575f80fd5b83359250602084013567ffffffffffffffff81111561081e575f80fd5b61082a8682870161076b565b9497909650939450505050565b5f805f806060858703121561084a575f80fd5b84356001600160a01b0381168114610860575f80fd5b935060208501359250604085013567ffffffffffffffff811115610882575f80fd5b61088e8782880161076b565b95989497509550505050565b5f602082840312156108aa575f80fd5b5051919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b838152604060208201525f6108f26040830184866108b1565b95945050505050565b5f6020828403121561090b575f80fd5b8151801515811461091a575f80fd5b9392505050565b60018060a01b0386168152846020820152836040820152608060608201525f61094e6080830184866108b1565b97965050505050505056fea2646970667358221220cc75bf689f7106ef6d07dc12a3d2c16b504ca809b78345212b3fbaf2fac4cceb64736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000036676389e48133b63a802f8635ad39e752d375d000000000000000000000000e1b4d34e8754600962cd944b535180bd758e6c2e000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a7
-----Decoded View---------------
Arg [0] : _lrtDepositPool (address): 0x036676389e48133B63a802f8635AD39E752D375D
Arg [1] : _vault (address): 0xe1B4d34E8754600962Cd944B535180Bd758E6c2e
Arg [2] : _rsETH (address): 0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000036676389e48133b63a802f8635ad39e752d375d
Arg [1] : 000000000000000000000000e1b4d34e8754600962cd944b535180bd758e6c2e
Arg [2] : 000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a7
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.