ETH Price: $2,355.41 (+4.90%)

Contract

0xFCF65492c7A7fE3a5418C8bF6E40082bB6d5A222
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
SR135221682021-10-31 2:28:231219 days ago1635647303IN
0xFCF65492...bB6d5A222
0 ETH0.00667466140.27117624

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SparkleswapIncentiveOracle

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 1 : SparkleswapIncentiveOracle.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.9;

contract SparkleswapIncentiveOracle {

    address private _o;
    bool private _p;
    uint128 private _rTx;
    uint128 private _rLp;
    

    constructor(uint128 _initialTX, uint128 _initialLP)
    {
        _o = msg.sender;
        _rTx = _initialTX;
        _rLp = _initialLP;
    }

    function P()
    external
    {
        require(_o == msg.sender, "1");

        _p = !_p;
    }

    function R() 
    external
    view
    returns(uint128, uint128)
    {
        if(_p) 
            return (0, 0);
        else
            return (_rTx, _rLp);
    }

    function RTX() 
    external
    view
    returns(uint256)
    {
        if(_p) 
            return uint256(0);
        else
            return uint256(_rTx);
    }

    function RLP() 
    external
    view
    returns(uint256)
    {
        if(_p) 
            return uint256(0);
        else
            return uint256(_rLp);
    }

    /**  
     * @dev Set the internal gas rebate to a new value
     * @param _newTX storage slot to update 0 = rebateTX 1 = rebateLP
     * @param _newLP New rebate value
     */
    function SR(uint128 _newTX, uint128 _newLP) 
    external
    {
        require(_o == msg.sender, "1");
        
        _rTx = _newTX;
        _rLp = _newLP;
        emit ERU(_rTx, _rLp);
    }

    /**
     * @dev Event Signal: SparkleSwap Gas Rebate for TXs has been updated
     */
    event ERU(uint128, uint128);
    
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint128","name":"_initialTX","type":"uint128"},{"internalType":"uint128","name":"_initialLP","type":"uint128"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"","type":"uint128"}],"name":"ERU","type":"event"},{"inputs":[],"name":"P","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"R","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RTX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"_newTX","type":"uint128"},{"internalType":"uint128","name":"_newLP","type":"uint128"}],"name":"SR","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516104f03803806104f083398101604081905261002f91610079565b600080546001600160a01b031916331790556001600160801b03908116600160801b029116176001556100ac565b80516001600160801b038116811461007457600080fd5b919050565b6000806040838503121561008c57600080fd5b6100958361005d565b91506100a36020840161005d565b90509250929050565b610435806100bb6000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80638b8fbd92116100505780638b8fbd92146100b8578063b6364b1d146100c2578063bdd4670a146100ca57600080fd5b806342955ca61461006c5780634980e1be14610087575b600080fd5b6100746100dd565b6040519081526020015b60405180910390f35b61008f610120565b604080516fffffffffffffffffffffffffffffffff93841681529290911660208301520161007e565b6100c0610182565b005b610074610255565b6100c06100d83660046103cc565b6102ac565b6000805474010000000000000000000000000000000000000000900460ff16156101075750600090565b506001546fffffffffffffffffffffffffffffffff1690565b60008054819074010000000000000000000000000000000000000000900460ff161561014f5750600091829150565b50506001546fffffffffffffffffffffffffffffffff808216927001000000000000000000000000000000009092041690565b60005473ffffffffffffffffffffffffffffffffffffffff163314610208576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f310000000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b6000805474010000000000000000000000000000000000000000900460ff161561027f5750600090565b5060015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff16331461032d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f310000000000000000000000000000000000000000000000000000000000000060448201526064016101ff565b6fffffffffffffffffffffffffffffffff828116700100000000000000000000000000000000838316810282811760018190556040805192861690941782529190910490921660208301527f1f5f45e887463887d0e7d2f01b6108704b896b2e43c8314af228b79e027ebbb5910160405180910390a15050565b80356fffffffffffffffffffffffffffffffff811681146103c757600080fd5b919050565b600080604083850312156103df57600080fd5b6103e8836103a7565b91506103f6602084016103a7565b9050925092905056fea2646970667358221220673fc82d4aed320df9c30038afa2b0730a9dd4ea194234982cb4a6cdfbb6126764736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100675760003560e01c80638b8fbd92116100505780638b8fbd92146100b8578063b6364b1d146100c2578063bdd4670a146100ca57600080fd5b806342955ca61461006c5780634980e1be14610087575b600080fd5b6100746100dd565b6040519081526020015b60405180910390f35b61008f610120565b604080516fffffffffffffffffffffffffffffffff93841681529290911660208301520161007e565b6100c0610182565b005b610074610255565b6100c06100d83660046103cc565b6102ac565b6000805474010000000000000000000000000000000000000000900460ff16156101075750600090565b506001546fffffffffffffffffffffffffffffffff1690565b60008054819074010000000000000000000000000000000000000000900460ff161561014f5750600091829150565b50506001546fffffffffffffffffffffffffffffffff808216927001000000000000000000000000000000009092041690565b60005473ffffffffffffffffffffffffffffffffffffffff163314610208576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f310000000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b6000805474010000000000000000000000000000000000000000900460ff161561027f5750600090565b5060015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff16331461032d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f310000000000000000000000000000000000000000000000000000000000000060448201526064016101ff565b6fffffffffffffffffffffffffffffffff828116700100000000000000000000000000000000838316810282811760018190556040805192861690941782529190910490921660208301527f1f5f45e887463887d0e7d2f01b6108704b896b2e43c8314af228b79e027ebbb5910160405180910390a15050565b80356fffffffffffffffffffffffffffffffff811681146103c757600080fd5b919050565b600080604083850312156103df57600080fd5b6103e8836103a7565b91506103f6602084016103a7565b9050925092905056fea2646970667358221220673fc82d4aed320df9c30038afa2b0730a9dd4ea194234982cb4a6cdfbb6126764736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initialTX (uint128): 0
Arg [1] : _initialLP (uint128): 0

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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
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.