Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 22 from a total of 22 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit Batch In... | 12269033 | 1782 days ago | IN | 0 ETH | 0.07581645 | ||||
| Deposit Batch In... | 12221936 | 1789 days ago | IN | 0 ETH | 0.04624407 | ||||
| Deposit Batch In... | 12178727 | 1796 days ago | IN | 0 ETH | 0.0526055 | ||||
| Deposit Batch In... | 12131675 | 1803 days ago | IN | 0 ETH | 0.07581165 | ||||
| Deposit Incentiv... | 12131675 | 1803 days ago | IN | 0 ETH | 0.0081878 | ||||
| Deposit Batch In... | 12086891 | 1810 days ago | IN | 0 ETH | 0.0710553 | ||||
| Deposit Batch In... | 12040688 | 1817 days ago | IN | 0 ETH | 0.0716907 | ||||
| Deposit Batch In... | 12003714 | 1823 days ago | IN | 0 ETH | 0.0473702 | ||||
| Deposit Batch In... | 11956505 | 1830 days ago | IN | 0 ETH | 0.0477998 | ||||
| Deposit Batch In... | 11906226 | 1838 days ago | IN | 0 ETH | 0.0947524 | ||||
| Deposit Batch In... | 11859247 | 1845 days ago | IN | 0 ETH | 0.07647584 | ||||
| Deposit Batch In... | 11814122 | 1852 days ago | IN | 0 ETH | 0.06213506 | ||||
| Deposit Batch In... | 11813847 | 1852 days ago | IN | 0 ETH | 0.01994833 | ||||
| Deposit Batch In... | 11786204 | 1856 days ago | IN | 0 ETH | 0.02693295 | ||||
| Deposit Batch In... | 11774198 | 1858 days ago | IN | 0 ETH | 0.02587358 | ||||
| Deposit Batch In... | 11767648 | 1859 days ago | IN | 0 ETH | 0.01791282 | ||||
| Deposit Batch In... | 11746921 | 1862 days ago | IN | 0 ETH | 0.01372605 | ||||
| Deposit Batch In... | 11746909 | 1862 days ago | IN | 0 ETH | 0.01433025 | ||||
| Deposit Batch In... | 11735377 | 1864 days ago | IN | 0 ETH | 0.00923924 | ||||
| Deposit Batch In... | 11704194 | 1869 days ago | IN | 0 ETH | 0.0151709 | ||||
| Deposit Batch In... | 11690206 | 1871 days ago | IN | 0 ETH | 0.01625454 | ||||
| Deposit Batch In... | 11690194 | 1871 days ago | IN | 0 ETH | 0.00993135 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Incentives
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-01-20
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.7.6;
// iRUNE Interface
interface iRUNE {
function transfer(address, uint) external returns (bool);
function transferTo(address, uint) external returns (bool);
}
// Sushiswap Interface
interface iPair {
function sync() external;
}
contract Incentives {
address public RUNE = 0x3155BA85D5F96b2d030a4966AF206230e46849cb;
event Deposited(address indexed pair, uint amount);
constructor() {}
// #### DEPOSIT ####
// Deposit and sync
function depositIncentives(address pair, uint amount) public {
_getRune(amount);
_depositAndSync(pair, amount);
}
// Deposit and sync batches
function depositBatchIncentives(address[] memory pairs, uint[] memory amounts) public {
uint _amountToGet = 0;
for(uint i = 0; i < pairs.length; i++){
_amountToGet += amounts[i];
}
_getRune(_amountToGet);
for(uint i = 0; i < pairs.length; i++){
_depositAndSync(pairs[i], amounts[i]);
}
}
// #### HELPERS ####
function _toWei(uint _amount) internal pure returns(uint){
return _amount * 10**18;
}
function _getRune(uint _amount) internal {
iRUNE(RUNE).transferTo(address(this), _toWei(_amount));
}
function _depositAndSync(address _pair, uint _amount) internal {
iRUNE(RUNE).transfer(_pair, _toWei(_amount));
iPair(_pair).sync();
emit Deposited(_pair, _amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"inputs":[],"name":"RUNE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"pairs","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"depositBatchIncentives","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositIncentives","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052600080546001600160a01b031916733155ba85d5f96b2d030a4966af206230e46849cb17905534801561003657600080fd5b5061046a806100466000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806375c9dbfc1461004657806393e4eaa914610074578063bab9163f14610098575b600080fd5b6100726004803603604081101561005c57600080fd5b506001600160a01b0381351690602001356101bf565b005b61007c6101d6565b604080516001600160a01b039092168252519081900360200190f35b610072600480360360408110156100ae57600080fd5b8101906020810181356401000000008111156100c957600080fd5b8201836020820111156100db57600080fd5b803590602001918460208302840111640100000000831117156100fd57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561014d57600080fd5b82018360208201111561015f57600080fd5b8035906020019184602083028401116401000000008311171561018157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506101e5945050505050565b6101c88161026b565b6101d282826102fb565b5050565b6000546001600160a01b031681565b6000805b8351811015610217578281815181106101fe57fe5b60200260200101518201915080806001019150506101e9565b506102218161026b565b60005b83518110156102655761025d84828151811061023c57fe5b602002602001015184838151811061025057fe5b60200260200101516102fb565b600101610224565b50505050565b6000546001600160a01b0316632ccb1b303061028684610427565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156102cc57600080fd5b505af11580156102e0573d6000803e3d6000fd5b505050506040513d60208110156102f657600080fd5b505050565b6000546001600160a01b031663a9059cbb8361031684610427565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561035c57600080fd5b505af1158015610370573d6000803e3d6000fd5b505050506040513d602081101561038657600080fd5b50506040805160016209351760e01b0319815290516001600160a01b0384169163fff6cae991600480830192600092919082900301818387803b1580156103cc57600080fd5b505af11580156103e0573d6000803e3d6000fd5b50506040805184815290516001600160a01b03861693507f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492509081900360200190a25050565b670de0b6b3a7640000029056fea264697066735822122036c558b9804bc83e9df87386bddce4ebc4343d41e522d1bc9e34d5d9c09d404c64736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c806375c9dbfc1461004657806393e4eaa914610074578063bab9163f14610098575b600080fd5b6100726004803603604081101561005c57600080fd5b506001600160a01b0381351690602001356101bf565b005b61007c6101d6565b604080516001600160a01b039092168252519081900360200190f35b610072600480360360408110156100ae57600080fd5b8101906020810181356401000000008111156100c957600080fd5b8201836020820111156100db57600080fd5b803590602001918460208302840111640100000000831117156100fd57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561014d57600080fd5b82018360208201111561015f57600080fd5b8035906020019184602083028401116401000000008311171561018157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506101e5945050505050565b6101c88161026b565b6101d282826102fb565b5050565b6000546001600160a01b031681565b6000805b8351811015610217578281815181106101fe57fe5b60200260200101518201915080806001019150506101e9565b506102218161026b565b60005b83518110156102655761025d84828151811061023c57fe5b602002602001015184838151811061025057fe5b60200260200101516102fb565b600101610224565b50505050565b6000546001600160a01b0316632ccb1b303061028684610427565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156102cc57600080fd5b505af11580156102e0573d6000803e3d6000fd5b505050506040513d60208110156102f657600080fd5b505050565b6000546001600160a01b031663a9059cbb8361031684610427565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561035c57600080fd5b505af1158015610370573d6000803e3d6000fd5b505050506040513d602081101561038657600080fd5b50506040805160016209351760e01b0319815290516001600160a01b0384169163fff6cae991600480830192600092919082900301818387803b1580156103cc57600080fd5b505af11580156103e0573d6000803e3d6000fd5b50506040805184815290516001600160a01b03861693507f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492509081900360200190a25050565b670de0b6b3a7640000029056fea264697066735822122036c558b9804bc83e9df87386bddce4ebc4343d41e522d1bc9e34d5d9c09d404c64736f6c63430007060033
Deployed Bytecode Sourcemap
317:1248:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;551:136;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;551:136:0;;;;;;;;:::i;:::-;;344:64;;;:::i;:::-;;;;-1:-1:-1;;;;;344:64:0;;;;;;;;;;;;;;726:372;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;726:372:0;;;;;;;;-1:-1:-1;726:372:0;;-1:-1:-1;;726:372:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;726:372:0;;-1:-1:-1;726:372:0;;-1:-1:-1;;;;;726:372:0:i;551:136::-;623:16;632:6;623:8;:16::i;:::-;650:29;666:4;672:6;650:15;:29::i;:::-;551:136;;:::o;344:64::-;;;-1:-1:-1;;;;;344:64:0;;:::o;726:372::-;823:17;859:6;855:91;875:5;:12;871:1;:16;855:91;;;924:7;932:1;924:10;;;;;;;;;;;;;;908:26;;;;889:3;;;;;;;855:91;;;;956:22;965:12;956:8;:22::i;:::-;993:6;989:102;1009:5;:12;1005:1;:16;989:102;;;1042:37;1058:5;1064:1;1058:8;;;;;;;;;;;;;;1068:7;1076:1;1068:10;;;;;;;;;;;;;;1042:15;:37::i;:::-;1023:3;;989:102;;;;726:372;;;:::o;1241:114::-;1299:4;;-1:-1:-1;;;;;1299:4:0;1293:22;1324:4;1331:15;1338:7;1331:6;:15::i;:::-;1293:54;;;;;;;;;;;;;-1:-1:-1;;;;;1293:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1241:114:0:o;1363:197::-;1443:4;;-1:-1:-1;;;;;1443:4:0;1437:20;1458:5;1465:15;1472:7;1465:6;:15::i;:::-;1437:44;;;;;;;;;;;;;-1:-1:-1;;;;;1437:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1492:19:0;;;-1:-1:-1;;;;;;1492:19:0;;;;-1:-1:-1;;;;;1492:17:0;;;;;:19;;;;;;;;;;;;;;;:17;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1527:25:0;;;;;;;;-1:-1:-1;;;;;1527:25:0;;;-1:-1:-1;1527:25:0;;-1:-1:-1;1527:25:0;;;;;;;;1363:197;;:::o;1134:99::-;1219:6;1209:16;;1134:99::o
Swarm Source
ipfs://36c558b9804bc83e9df87386bddce4ebc4343d41e522d1bc9e34d5d9c09d404c
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 ]
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.