ETH Price: $3,183.61 (+0.92%)
Gas: 0.06 GWei

Contract

0x3E3075c12291Ab585B3ceEf6B66e3AefcBe9317B

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Referee66464722024-07-11 11:09:183 days ago1720696158IN
0x3E3075c1...fcBe9317B
0 ETH0.000002960.0582
Set Referee60526222024-06-27 17:06:1616 days ago1719507976IN
0x3E3075c1...fcBe9317B
0 ETH0.000005040.07415336
Set Referee59994742024-06-26 11:30:3618 days ago1719401436IN
0x3E3075c1...fcBe9317B
0 ETH0.000002960.0582
Set Referee59728842024-06-25 20:43:5718 days ago1719348237IN
0x3E3075c1...fcBe9317B
0 ETH0.000003960.0582
Set Referee58382712024-06-22 17:55:1021 days ago1719078910IN
0x3E3075c1...fcBe9317B
0 ETH0.000003150.062
Set Referee57979052024-06-21 19:28:5222 days ago1718998132IN
0x3E3075c1...fcBe9317B
0 ETH0.000002960.0582
Set Referee57960632024-06-21 18:27:2322 days ago1718994443IN
0x3E3075c1...fcBe9317B
0 ETH0.00000310.061
Set Referee57896992024-06-21 14:55:1422 days ago1718981714IN
0x3E3075c1...fcBe9317B
0 ETH0.00000310.061
Set Referee57886012024-06-21 14:18:3823 days ago1718979518IN
0x3E3075c1...fcBe9317B
0 ETH0.000004210.062
Set Referee57368472024-06-20 9:33:0024 days ago1718875980IN
0x3E3075c1...fcBe9317B
0 ETH0.000003310.06512945
Set Referee56934272024-06-19 9:16:5725 days ago1718788617IN
0x3E3075c1...fcBe9317B
0 ETH0.000002960.0582
Set Referee55923752024-06-17 1:05:1727 days ago1718586317IN
0x3E3075c1...fcBe9317B
0 ETH0.000003150.062
Set Referee54079152024-06-12 18:23:0231 days ago1718216582IN
0x3E3075c1...fcBe9317B
0 ETH0.00000630.09270296
Set Referee53535242024-06-11 12:04:0033 days ago1718107440IN
0x3E3075c1...fcBe9317B
0 ETH0.000003560.07
Set Referee52477172024-06-07 20:28:2436 days ago1717792104IN
0x3E3075c1...fcBe9317B
0 ETH0.000003130.13
Set Referee52477122024-06-07 20:28:0936 days ago1717792089IN
0x3E3075c1...fcBe9317B
0 ETH0.000006620.13
Set Referee52477102024-06-07 20:28:0336 days ago1717792083IN
0x3E3075c1...fcBe9317B
0 ETH0.000006620.13
Set Referee51666122024-06-05 0:46:4339 days ago1717548403IN
0x3E3075c1...fcBe9317B
0 ETH0.00000310.061
Set Referee51665972024-06-05 0:45:5839 days ago1717548358IN
0x3E3075c1...fcBe9317B
0 ETH0.00000310.061
Set Referee51377082024-06-04 0:41:2440 days ago1717461684IN
0x3E3075c1...fcBe9317B
0 ETH0.00000310.061
Set Referee51377082024-06-04 0:41:2440 days ago1717461684IN
0x3E3075c1...fcBe9317B
0 ETH0.00000310.061
Set Referee51029752024-06-02 19:44:3441 days ago1717357474IN
0x3E3075c1...fcBe9317B
0 ETH0.000003920.077
Set Referee51029742024-06-02 19:44:3141 days ago1717357471IN
0x3E3075c1...fcBe9317B
0 ETH0.000003920.077
Set Referee51016042024-06-02 18:36:0141 days ago1717353361IN
0x3E3075c1...fcBe9317B
0 ETH0.000004070.08
Set Referee50992062024-06-02 16:36:0541 days ago1717346165IN
0x3E3075c1...fcBe9317B
0 ETH0.000001680.07
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Value
67824172024-07-14 14:40:5442 secs ago1720968054
0x3E3075c1...fcBe9317B
0 ETH
67824102024-07-14 14:40:4056 secs ago1720968040
0x3E3075c1...fcBe9317B
0 ETH
67823852024-07-14 14:39:501 min ago1720967990
0x3E3075c1...fcBe9317B
0 ETH
67823802024-07-14 14:39:401 min ago1720967980
0x3E3075c1...fcBe9317B
0 ETH
67823502024-07-14 14:38:402 mins ago1720967920
0x3E3075c1...fcBe9317B
0 ETH
67823452024-07-14 14:38:303 mins ago1720967910
0x3E3075c1...fcBe9317B
0 ETH
67823212024-07-14 14:37:423 mins ago1720967862
0x3E3075c1...fcBe9317B
0 ETH
67823122024-07-14 14:37:244 mins ago1720967844
0x3E3075c1...fcBe9317B
0 ETH
67822902024-07-14 14:36:404 mins ago1720967800
0x3E3075c1...fcBe9317B
0 ETH
67822812024-07-14 14:36:225 mins ago1720967782
0x3E3075c1...fcBe9317B
0 ETH
67822602024-07-14 14:35:405 mins ago1720967740
0x3E3075c1...fcBe9317B
0 ETH
67822552024-07-14 14:35:306 mins ago1720967730
0x3E3075c1...fcBe9317B
0 ETH
67822302024-07-14 14:34:406 mins ago1720967680
0x3E3075c1...fcBe9317B
0 ETH
67822212024-07-14 14:34:227 mins ago1720967662
0x3E3075c1...fcBe9317B
0 ETH
67821902024-07-14 14:33:208 mins ago1720967600
0x3E3075c1...fcBe9317B
0 ETH
67821702024-07-14 14:32:408 mins ago1720967560
0x3E3075c1...fcBe9317B
0 ETH
67821572024-07-14 14:32:149 mins ago1720967534
0x3E3075c1...fcBe9317B
0 ETH
67821402024-07-14 14:31:409 mins ago1720967500
0x3E3075c1...fcBe9317B
0 ETH
67821202024-07-14 14:31:0010 mins ago1720967460
0x3E3075c1...fcBe9317B
0 ETH
67821102024-07-14 14:30:4010 mins ago1720967440
0x3E3075c1...fcBe9317B
0 ETH
67820812024-07-14 14:29:4211 mins ago1720967382
0x3E3075c1...fcBe9317B
0 ETH
67820702024-07-14 14:29:2012 mins ago1720967360
0x3E3075c1...fcBe9317B
0 ETH
67820502024-07-14 14:28:4012 mins ago1720967320
0x3E3075c1...fcBe9317B
0 ETH
67820392024-07-14 14:28:1813 mins ago1720967298
0x3E3075c1...fcBe9317B
0 ETH
67820092024-07-14 14:27:1814 mins ago1720967238
0x3E3075c1...fcBe9317B
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BattlemonReferral

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 2 : BattlemonReferral.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.20;

import "./interfaces/IBattlemonReferral.sol";

contract BattlemonReferral {
    event ReferralSet(address indexed sender, address indexed ref);

    mapping(address => address) public referrals;
    mapping(address => uint) public referralsCount;

    constructor() {}

    function setReferee(address ref) public {
        require(ref != msg.sender, "Referral: Sender can't be referee");
        require(ref != address(0), "Referral: Zero address");
        require(
            referrals[msg.sender] == address(0),
            "Referral: Can't change referree"
        );

        referrals[msg.sender] = ref;
        referralsCount[ref]++;
        emit ReferralSet(msg.sender, ref);
    }

    function getUserRef(address user) public view returns (address) {
        return referrals[user];
    }
}

File 2 of 2 : IBattlemonReferral.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.20;

interface IBattlemonReferral {
    function setReferee(address ref) external;

    function getUserRef(address user) external view returns (address);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"ref","type":"address"}],"name":"ReferralSet","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserRef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referrals","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referralsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ref","type":"address"}],"name":"setReferee","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061032e806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806308c56a8e146100515780636b366c661461009a5780639ca423b3146100c8578063c4a796c1146100f1575b600080fd5b61007d61005f3660046102a1565b6001600160a01b039081166000908152602081905260409020541690565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ba6100a83660046102a1565b60016020526000908152604090205481565b604051908152602001610091565b61007d6100d63660046102a1565b6000602081905290815260409020546001600160a01b031681565b6101046100ff3660046102a1565b610106565b005b336001600160a01b0382160361016d5760405162461bcd60e51b815260206004820152602160248201527f526566657272616c3a2053656e6465722063616e2774206265207265666572656044820152606560f81b60648201526084015b60405180910390fd5b6001600160a01b0381166101bc5760405162461bcd60e51b8152602060048201526016602482015275526566657272616c3a205a65726f206164647265737360501b6044820152606401610164565b336000908152602081905260409020546001600160a01b0316156102225760405162461bcd60e51b815260206004820152601f60248201527f526566657272616c3a2043616e2774206368616e6765207265666572726565006044820152606401610164565b3360009081526020818152604080832080546001600160a01b0319166001600160a01b038616908117909155835260019091528120805491610263836102d1565b90915550506040516001600160a01b0382169033907fdf63218877cb126f6c003f2b7f77327674cd6a0b53ad51deac392548ec12b0ed90600090a350565b6000602082840312156102b357600080fd5b81356001600160a01b03811681146102ca57600080fd5b9392505050565b6000600182016102f157634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220e9574cb1755801deb5a2550a4ef95b4a652a348b4fe98103e8eb2fa587a7707d64736f6c63430008140033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806308c56a8e146100515780636b366c661461009a5780639ca423b3146100c8578063c4a796c1146100f1575b600080fd5b61007d61005f3660046102a1565b6001600160a01b039081166000908152602081905260409020541690565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ba6100a83660046102a1565b60016020526000908152604090205481565b604051908152602001610091565b61007d6100d63660046102a1565b6000602081905290815260409020546001600160a01b031681565b6101046100ff3660046102a1565b610106565b005b336001600160a01b0382160361016d5760405162461bcd60e51b815260206004820152602160248201527f526566657272616c3a2053656e6465722063616e2774206265207265666572656044820152606560f81b60648201526084015b60405180910390fd5b6001600160a01b0381166101bc5760405162461bcd60e51b8152602060048201526016602482015275526566657272616c3a205a65726f206164647265737360501b6044820152606401610164565b336000908152602081905260409020546001600160a01b0316156102225760405162461bcd60e51b815260206004820152601f60248201527f526566657272616c3a2043616e2774206368616e6765207265666572726565006044820152606401610164565b3360009081526020818152604080832080546001600160a01b0319166001600160a01b038616908117909155835260019091528120805491610263836102d1565b90915550506040516001600160a01b0382169033907fdf63218877cb126f6c003f2b7f77327674cd6a0b53ad51deac392548ec12b0ed90600090a350565b6000602082840312156102b357600080fd5b81356001600160a01b03811681146102ca57600080fd5b9392505050565b6000600182016102f157634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220e9574cb1755801deb5a2550a4ef95b4a652a348b4fe98103e8eb2fa587a7707d64736f6c63430008140033

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.