Skip to main content
PulseScanner.io

Address

0x75cf5ff0641b8b15a61805decffcf2d29330cea7
Current Holdings
$0.00
TXs sent
not counted
First Active
2026-03-05
block 25,945,719
Last Active
198 days ago
block 25,945,719
Funded By
not identified

Net worth historyi

No net-worth snapshots recorded yet
exact matchAddPairToOraclesolc 0.6.12+commit.27d51765runtime exact · creation exact
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface ISimpleTWAPOracle {
    function addDirectPair(address token, address pair, bool isToken0) external;
}

contract AddPairToOracle {
    address public immutable oracle;
    address public immutable token;
    address public immutable pair;
    bool public immutable isToken0;


    event PairAdded(address indexed token, address indexed pair);

    constructor(address _oracle, address _token, address _pair, bool _isToken0) public {
        require(_oracle != address(0), "AddPairToOracle: Invalid oracle address");
        require(_token != address(0), "AddPairToOracle: Invalid token address");
        require(_pair != address(0), "AddPairToOracle: Invalid pair address");

        oracle = _oracle;
        token = _token;
        pair = _pair;
        isToken0 = _isToken0;

    }

    function execute() external {
        ISimpleTWAPOracle(oracle).addDirectPair(token, pair, isToken0);
        emit PairAdded(token, pair);
    }

}