ETH Price: $2,433.01 (-2.30%)

Contract Diff Checker

Contract Name:
LiquidityPool

Contract Source Code:

File 1 of 1 : LiquidityPool

pragma solidity 0.6.12;

interface Kye {
    function routerAddress() external view returns (address);
}

contract Routerable {
    
    address private constant _KYEADDRESS = 0xD5A4dc51229774223e288528E03192e2342bDA00;
    
    function kyeAddress() public pure returns (address) {
        return _KYEADDRESS;
    }
    
    function routerAddress() public view returns (address) {
        return Kye(kyeAddress()).routerAddress();
    }
    
    modifier onlyRouter() {
        require(msg.sender == routerAddress(), "Caller is not Router");
        _;
    }
}

contract LiquidityPool is Routerable{
    
    receive() external payable {}
    
    function give(uint amount, address payable to) public onlyRouter {
        to.transfer(amount);
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):