| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 24414358 | 45 days ago | 0.00000496 ETH | ||||
| Transfer | 24413070 | 45 days ago | 0.00000518 ETH | ||||
| Transfer | 24411100 | 45 days ago | 0.00000688 ETH | ||||
| Transfer | 24411074 | 45 days ago | 0.00000664 ETH | ||||
| Transfer | 24410977 | 45 days ago | 0.00000578 ETH | ||||
| Transfer | 24410400 | 45 days ago | 0.00000442 ETH | ||||
| Transfer | 24410145 | 45 days ago | 0.00000406 ETH | ||||
| Transfer | 24409319 | 46 days ago | 0.00000861 ETH | ||||
| Transfer | 24409055 | 46 days ago | 0.00000931 ETH | ||||
| Transfer | 24408150 | 46 days ago | 0.00001113 ETH | ||||
| Transfer | 24407795 | 46 days ago | 0.00000681 ETH | ||||
| Transfer | 24405787 | 46 days ago | 0.00000984 ETH | ||||
| Transfer | 24405491 | 46 days ago | 0.00002054 ETH | ||||
| Transfer | 23555848 | 165 days ago | 0.00004918 ETH | ||||
| Transfer | 23555465 | 165 days ago | 0.00007131 ETH | ||||
| Transfer | 23554730 | 165 days ago | 0.00007588 ETH | ||||
| Transfer | 23553093 | 165 days ago | 0.00013875 ETH | ||||
| Transfer | 23552385 | 165 days ago | 0.00010178 ETH | ||||
| Transfer | 23552134 | 165 days ago | 0.00012093 ETH | ||||
| Transfer | 23549154 | 166 days ago | 0.00011876 ETH | ||||
| Transfer | 23548905 | 166 days ago | 0.0001866 ETH | ||||
| Transfer | 23548777 | 166 days ago | 0.00018351 ETH | ||||
| Transfer | 23548654 | 166 days ago | 0.00026655 ETH | ||||
| Transfer | 23547880 | 166 days ago | 0.00010155 ETH | ||||
| Transfer | 23547878 | 166 days ago | 0.00009704 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GasCompensationVault
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import { EtherSend } from "../libraries/EtherSend.sol";
interface IPayableGovernance {
function receiveEther() external payable returns (bool);
}
/**
* @notice this contract should store ether for gas compensations and also retrieve the basefee
* */
contract GasCompensationVault {
using EtherSend for address;
address private constant GovernanceAddress = 0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce;
modifier onlyGovernance() {
require(msg.sender == GovernanceAddress, "only gov");
_;
}
/**
* @notice function to compensate gas by sending amount eth to a recipient
* @param recipient address to receive amount eth
* @param gasAmount the amount of gas to be compensated
* */
function compensateGas(address recipient, uint256 gasAmount) external onlyGovernance {
uint256 vaultBalance = address(this).balance;
uint256 toCompensate = gasAmount * block.basefee;
if (vaultBalance == 0) return;
payable(recipient).send((toCompensate > vaultBalance) ? vaultBalance : toCompensate);
}
/**
* @notice function to withdraw compensate eth back to governance
* @param amount the amount of eth to withdraw back to governance
* */
function withdrawToGovernance(uint256 amount) external onlyGovernance {
uint256 vaultBalance = address(this).balance;
require(GovernanceAddress.sendEther((amount > vaultBalance) ? vaultBalance : amount), "pay fail");
}
/**
* @notice receive ether function, does nothing but receive ether
* */
receive() external payable {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12 || ^0.8.7;
/// @notice very short library which implements a method to transfer ether via <address>.call
library EtherSend {
/**
* @notice function to transfer ether via filling the value field of a call
* @dev DICLAIMER: you must handle the possibility of reentrancy when using this function!!!
* @param to address to be transferred to
* @param amount amount to be transferred
* @return success true if transfer successful
* */
function sendEther(address to, uint256 amount) internal returns (bool success) {
(success, ) = payable(to).call{ value: amount }("");
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"gasAmount","type":"uint256"}],"name":"compensateGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b5061033a806100206000396000f3fe60806040526004361061002d5760003560e01c8063a99ce80714610039578063e822f7841461005b57600080fd5b3661003457005b600080fd5b34801561004557600080fd5b50610059610054366004610260565b61007b565b005b34801561006757600080fd5b506100596100763660046102a5565b61012f565b33735efda50f22d34f262c29268506c5fa42cb56a1ce146100ce5760405162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b60448201526064015b60405180910390fd5b4760006100db48846102be565b9050816100e85750505050565b8373ffffffffffffffffffffffffffffffffffffffff166108fc83831161010f5782610111565b835b6040518115909202916000818181858888f1505050505050505b5050565b33735efda50f22d34f262c29268506c5fa42cb56a1ce1461017d5760405162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b60448201526064016100c5565b476101ab81831161018e5782610190565b815b735efda50f22d34f262c29268506c5fa42cb56a1ce906101f7565b61012b5760405162461bcd60e51b815260206004820152600860248201527f706179206661696c00000000000000000000000000000000000000000000000060448201526064016100c5565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610251576040519150601f19603f3d011682016040523d82523d6000602084013e610256565b606091505b5090949350505050565b6000806040838503121561027357600080fd5b823573ffffffffffffffffffffffffffffffffffffffff8116811461029757600080fd5b946020939093013593505050565b6000602082840312156102b757600080fd5b5035919050565b60008160001904831182151516156102ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50029056fea264697066735822122044cb91072f93c57d1a81c4836740d54e5673bb3273206ec790accce7ee848c0064736f6c63430008070033
Deployed Bytecode
0x60806040526004361061002d5760003560e01c8063a99ce80714610039578063e822f7841461005b57600080fd5b3661003457005b600080fd5b34801561004557600080fd5b50610059610054366004610260565b61007b565b005b34801561006757600080fd5b506100596100763660046102a5565b61012f565b33735efda50f22d34f262c29268506c5fa42cb56a1ce146100ce5760405162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b60448201526064015b60405180910390fd5b4760006100db48846102be565b9050816100e85750505050565b8373ffffffffffffffffffffffffffffffffffffffff166108fc83831161010f5782610111565b835b6040518115909202916000818181858888f1505050505050505b5050565b33735efda50f22d34f262c29268506c5fa42cb56a1ce1461017d5760405162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b60448201526064016100c5565b476101ab81831161018e5782610190565b815b735efda50f22d34f262c29268506c5fa42cb56a1ce906101f7565b61012b5760405162461bcd60e51b815260206004820152600860248201527f706179206661696c00000000000000000000000000000000000000000000000060448201526064016100c5565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610251576040519150601f19603f3d011682016040523d82523d6000602084013e610256565b606091505b5090949350505050565b6000806040838503121561027357600080fd5b823573ffffffffffffffffffffffffffffffffffffffff8116811461029757600080fd5b946020939093013593505050565b6000602082840312156102b757600080fd5b5035919050565b60008160001904831182151516156102ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50029056fea264697066735822122044cb91072f93c57d1a81c4836740d54e5673bb3273206ec790accce7ee848c0064736f6c63430008070033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$8,646.24
Net Worth in ETH
4.020185
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,150.71 | 4.0202 | $8,646.24 |
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.