Source Code
Latest 24 from a total of 24 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Distribute | 13795316 | 1561 days ago | IN | 0 ETH | 0.00939009 | ||||
| Distribute | 13794382 | 1562 days ago | IN | 0 ETH | 0.01024812 | ||||
| Distribute | 13794374 | 1562 days ago | IN | 0 ETH | 0.00943102 | ||||
| Distribute | 13791422 | 1562 days ago | IN | 0 ETH | 0.00542693 | ||||
| Distribute | 13791320 | 1562 days ago | IN | 0 ETH | 0.00791433 | ||||
| Distribute | 13791290 | 1562 days ago | IN | 0 ETH | 0.00780789 | ||||
| Distribute | 13789748 | 1562 days ago | IN | 0 ETH | 0.0064532 | ||||
| Distribute | 13784756 | 1563 days ago | IN | 0 ETH | 0.00691064 | ||||
| Distribute | 13784576 | 1563 days ago | IN | 0 ETH | 0.00812858 | ||||
| Distribute | 13784566 | 1563 days ago | IN | 0 ETH | 0.00836648 | ||||
| Distribute | 13784240 | 1563 days ago | IN | 0 ETH | 0.01057755 | ||||
| Pass Thru Gate | 13784238 | 1563 days ago | IN | 0.02 ETH | 0.00337271 | ||||
| Add Gate | 13784160 | 1563 days ago | IN | 0 ETH | 0.00846858 | ||||
| Add Gate | 13784155 | 1563 days ago | IN | 0 ETH | 0.00846786 | ||||
| Add Gate | 13784148 | 1563 days ago | IN | 0 ETH | 0.00645252 | ||||
| Distribute | 13784052 | 1563 days ago | IN | 0 ETH | 0.00185575 | ||||
| Add Gate | 13783034 | 1563 days ago | IN | 0 ETH | 0.00680853 | ||||
| Add Gate | 13783028 | 1563 days ago | IN | 0 ETH | 0.00618936 | ||||
| Add Gate | 13783010 | 1563 days ago | IN | 0 ETH | 0.00691885 | ||||
| Distribute | 13727327 | 1572 days ago | IN | 0 ETH | 0.01108961 | ||||
| Pass Thru Gate | 13727318 | 1572 days ago | IN | 0.001 ETH | 0.00397858 | ||||
| Distribute | 13727311 | 1572 days ago | IN | 0 ETH | 0.01388011 | ||||
| Pass Thru Gate | 13727292 | 1572 days ago | IN | 0.001 ETH | 0.00461243 | ||||
| Add Gate | 13727289 | 1572 days ago | IN | 0 ETH | 0.01747635 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Incinerate | 24613004 | 15 days ago | 0.036 ETH | ||||
| Transfer | 24613004 | 15 days ago | 0.004 ETH | ||||
| Incinerate | 24613004 | 15 days ago | 1.818 ETH | ||||
| Transfer | 24613004 | 15 days ago | 0.202 ETH | ||||
| Incinerate | 24613004 | 15 days ago | 1.71 ETH | ||||
| Transfer | 24613004 | 15 days ago | 0.19 ETH | ||||
| Incinerate | 22516527 | 308 days ago | 1.71 ETH | ||||
| Transfer | 22516527 | 308 days ago | 0.19 ETH | ||||
| - | 13796291 | 1561 days ago | 0.02 ETH | ||||
| - | 13796047 | 1561 days ago | 0.02 ETH | ||||
| - | 13795316 | 1561 days ago | 0.045 ETH | ||||
| - | 13795316 | 1561 days ago | 0.005 ETH | ||||
| - | 13794993 | 1562 days ago | 0.1 ETH | ||||
| - | 13794928 | 1562 days ago | 0.05 ETH | ||||
| - | 13794635 | 1562 days ago | 0.1 ETH | ||||
| - | 13794623 | 1562 days ago | 0.1 ETH | ||||
| - | 13794382 | 1562 days ago | 0.585 ETH | ||||
| - | 13794382 | 1562 days ago | 0.065 ETH | ||||
| - | 13794374 | 1562 days ago | 0.108 ETH | ||||
| - | 13794374 | 1562 days ago | 0.012 ETH | ||||
| - | 13793649 | 1562 days ago | 0.05 ETH | ||||
| - | 13793622 | 1562 days ago | 0.1 ETH | ||||
| - | 13793537 | 1562 days ago | 0.1 ETH | ||||
| - | 13793221 | 1562 days ago | 0.1 ETH | ||||
| - | 13793194 | 1562 days ago | 0.1 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FixedSplitPooledPriceGate
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
import "IPriceGate.sol";
import "IIncinerator.sol";
contract FixedSplitPooledPriceGate is IPriceGate {
struct Gate {
uint ethReceived;
uint ethCost;
address burnToken;
address incinerator;
address payable beneficiary;
uint beneficiaryPct;
}
uint public numGates;
mapping (uint => Gate) public gates;
address public management;
modifier managementOnly() {
require (msg.sender == management, 'Only management may call this');
_;
}
constructor (address mgmt) {
management = mgmt;
}
function addGate(uint _ethCost, uint _beneficiaryPct, address _incinerator, address _burnToken, address payable _beneficiary) external managementOnly {
numGates += 1;
Gate storage gate = gates[numGates];
require(_beneficiaryPct <= 100, 'Percents must be between 0 and 100');
gate.ethCost = _ethCost;
gate.burnToken = _burnToken;
gate.incinerator = _incinerator;
gate.beneficiary = _beneficiary;
gate.beneficiaryPct = _beneficiaryPct;
}
// change the management key
function setManagement(address newMgmt) external managementOnly {
management = newMgmt;
}
function getCost(uint index) override external view returns (uint _ethCost) {
Gate memory gate = gates[index];
return gate.ethCost;
}
function passThruGate(uint index, address) override external payable {
Gate storage gate = gates[index];
require(msg.value >= gate.ethCost, 'Please send more ETH');
gate.ethReceived += msg.value;
}
function distribute(uint index) external {
Gate storage gate = gates[index];
uint balance = gate.ethReceived;
uint beneficiaryAmt = balance * gate.beneficiaryPct / 100;
uint incinerateAmt = balance - beneficiaryAmt;
gate.ethReceived = 0;
gate.beneficiary.transfer(beneficiaryAmt);
IIncinerator(gate.incinerator).incinerate{value: incinerateAmt}(gate.burnToken);
}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
interface IPriceGate {
function getCost(uint) external view returns (uint ethCost);
function passThruGate(uint, address) external payable;
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.9;
interface IIncinerator {
function incinerate(address tokenAddr) external payable;
}{
"evmVersion": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"mgmt","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_ethCost","type":"uint256"},{"internalType":"uint256","name":"_beneficiaryPct","type":"uint256"},{"internalType":"address","name":"_incinerator","type":"address"},{"internalType":"address","name":"_burnToken","type":"address"},{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"addGate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gates","outputs":[{"internalType":"uint256","name":"ethReceived","type":"uint256"},{"internalType":"uint256","name":"ethCost","type":"uint256"},{"internalType":"address","name":"burnToken","type":"address"},{"internalType":"address","name":"incinerator","type":"address"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"beneficiaryPct","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getCost","outputs":[{"internalType":"uint256","name":"_ethCost","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"management","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"passThruGate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newMgmt","type":"address"}],"name":"setManagement","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506040516107ba3803806107ba83398101604081905261002f91610054565b600280546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610727806100936000396000f3fe60806040526004361061007b5760003560e01c806388a8d6021161004e57806388a8d602146101e457806391c05b0b1461021c578063d1b92e431461023c578063d4a22bde1461025257600080fd5b806330955c03146100805780633d783d7b146100a25780635a4dd47d146101415780637b01facd146101d1575b600080fd5b34801561008c57600080fd5b506100a061009b36600461059f565b610272565b005b3480156100ae57600080fd5b506101006100bd3660046105fe565b600160208190526000918252604090912080549181015460028201546003830154600484015460059094015492936001600160a01b039283169391831692169086565b6040805196875260208701959095526001600160a01b0393841694860194909452908216606085015216608083015260a082015260c0015b60405180910390f35b34801561014d57600080fd5b506101c361015c3660046105fe565b600090815260016020818152604092839020835160c081018552815481529281015491830182905260028101546001600160a01b03908116948401949094526003810154841660608401526004810154909316608083015260059092015460a09091015290565b604051908152602001610138565b6100a06101df366004610617565b6103a4565b3480156101f057600080fd5b50600254610204906001600160a01b031681565b6040516001600160a01b039091168152602001610138565b34801561022857600080fd5b506100a06102373660046105fe565b61041d565b34801561024857600080fd5b506101c360005481565b34801561025e57600080fd5b506100a061026d366004610647565b61050b565b6002546001600160a01b031633146102d15760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206d616e6167656d656e74206d61792063616c6c207468697300000060448201526064015b60405180910390fd5b60016000808282546102e39190610681565b909155505060008054815260016020526040902060648511156103535760405162461bcd60e51b815260206004820152602260248201527f50657263656e7473206d757374206265206265747765656e203020616e642031604482015261030360f41b60648201526084016102c8565b60018101959095556002850180546001600160a01b03199081166001600160a01b03948516179091556003860180548216948416949094179093556004850180549093169116179055600590910155565b6000828152600160208190526040909120908101543410156103ff5760405162461bcd60e51b81526020600482015260146024820152730a0d8cac2e6ca40e6cadcc840dadee4ca408aa8960631b60448201526064016102c8565b348160000160008282546104139190610681565b9091555050505050565b600081815260016020526040812080546005820154919290916064906104439084610699565b61044d91906106b8565b9050600061045b82846106da565b600080865560048601546040519293506001600160a01b03169184156108fc0291859190818181858888f1935050505015801561049c573d6000803e3d6000fd5b506003840154600285015460405163087e58fd60e41b81526001600160a01b0391821660048201529116906387e58fd09083906024016000604051808303818588803b1580156104eb57600080fd5b505af11580156104ff573d6000803e3d6000fd5b50505050505050505050565b6002546001600160a01b031633146105655760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206d616e6167656d656e74206d61792063616c6c207468697300000060448201526064016102c8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116811461059c57600080fd5b50565b600080600080600060a086880312156105b757600080fd5b853594506020860135935060408601356105d081610587565b925060608601356105e081610587565b915060808601356105f081610587565b809150509295509295909350565b60006020828403121561061057600080fd5b5035919050565b6000806040838503121561062a57600080fd5b82359150602083013561063c81610587565b809150509250929050565b60006020828403121561065957600080fd5b813561066481610587565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156106945761069461066b565b500190565b60008160001904831182151516156106b3576106b361066b565b500290565b6000826106d557634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156106ec576106ec61066b565b50039056fea264697066735822122034605c51d978d4210c9af60da0654c54493ab45e5b733ad7180a9aae8b0c5ef964736f6c63430008090033000000000000000000000000288fe43139741f91a8cbb6f4add83811c794851b
Deployed Bytecode
0x60806040526004361061007b5760003560e01c806388a8d6021161004e57806388a8d602146101e457806391c05b0b1461021c578063d1b92e431461023c578063d4a22bde1461025257600080fd5b806330955c03146100805780633d783d7b146100a25780635a4dd47d146101415780637b01facd146101d1575b600080fd5b34801561008c57600080fd5b506100a061009b36600461059f565b610272565b005b3480156100ae57600080fd5b506101006100bd3660046105fe565b600160208190526000918252604090912080549181015460028201546003830154600484015460059094015492936001600160a01b039283169391831692169086565b6040805196875260208701959095526001600160a01b0393841694860194909452908216606085015216608083015260a082015260c0015b60405180910390f35b34801561014d57600080fd5b506101c361015c3660046105fe565b600090815260016020818152604092839020835160c081018552815481529281015491830182905260028101546001600160a01b03908116948401949094526003810154841660608401526004810154909316608083015260059092015460a09091015290565b604051908152602001610138565b6100a06101df366004610617565b6103a4565b3480156101f057600080fd5b50600254610204906001600160a01b031681565b6040516001600160a01b039091168152602001610138565b34801561022857600080fd5b506100a06102373660046105fe565b61041d565b34801561024857600080fd5b506101c360005481565b34801561025e57600080fd5b506100a061026d366004610647565b61050b565b6002546001600160a01b031633146102d15760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206d616e6167656d656e74206d61792063616c6c207468697300000060448201526064015b60405180910390fd5b60016000808282546102e39190610681565b909155505060008054815260016020526040902060648511156103535760405162461bcd60e51b815260206004820152602260248201527f50657263656e7473206d757374206265206265747765656e203020616e642031604482015261030360f41b60648201526084016102c8565b60018101959095556002850180546001600160a01b03199081166001600160a01b03948516179091556003860180548216948416949094179093556004850180549093169116179055600590910155565b6000828152600160208190526040909120908101543410156103ff5760405162461bcd60e51b81526020600482015260146024820152730a0d8cac2e6ca40e6cadcc840dadee4ca408aa8960631b60448201526064016102c8565b348160000160008282546104139190610681565b9091555050505050565b600081815260016020526040812080546005820154919290916064906104439084610699565b61044d91906106b8565b9050600061045b82846106da565b600080865560048601546040519293506001600160a01b03169184156108fc0291859190818181858888f1935050505015801561049c573d6000803e3d6000fd5b506003840154600285015460405163087e58fd60e41b81526001600160a01b0391821660048201529116906387e58fd09083906024016000604051808303818588803b1580156104eb57600080fd5b505af11580156104ff573d6000803e3d6000fd5b50505050505050505050565b6002546001600160a01b031633146105655760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206d616e6167656d656e74206d61792063616c6c207468697300000060448201526064016102c8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116811461059c57600080fd5b50565b600080600080600060a086880312156105b757600080fd5b853594506020860135935060408601356105d081610587565b925060608601356105e081610587565b915060808601356105f081610587565b809150509295509295909350565b60006020828403121561061057600080fd5b5035919050565b6000806040838503121561062a57600080fd5b82359150602083013561063c81610587565b809150509250929050565b60006020828403121561065957600080fd5b813561066481610587565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156106945761069461066b565b500190565b60008160001904831182151516156106b3576106b361066b565b500290565b6000826106d557634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156106ec576106ec61066b565b50039056fea264697066735822122034605c51d978d4210c9af60da0654c54493ab45e5b733ad7180a9aae8b0c5ef964736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000288fe43139741f91a8cbb6f4add83811c794851b
-----Decoded View---------------
Arg [0] : mgmt (address): 0x288fE43139741F91a8Cbb6F4adD83811c794851b
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000288fe43139741f91a8cbb6f4add83811c794851b
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.