ETH Price: $2,235.11 (-4.70%)
 

Overview

Max Total Supply

1,000,000 UNIB

Holders

0

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
UniBridge

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2023-08-25
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;

/*
 https://t.me/UniBridgeERC

 https://UniBridge.tech
*/

contract UniBridge {
    string public name = "UniBridge";
    string public symbol = "UNIB";
    uint8 public decimals = 18;
    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor(uint256 initialSupply) {
        totalSupply = initialSupply * (10 ** uint256(decimals));
        balanceOf[msg.sender] = totalSupply;
    }

    function transfer(address to, uint256 value) public returns (bool) {
        require(balanceOf[msg.sender] >= value, "Insufficient balance");
        balanceOf[msg.sender] -= value;
        balanceOf[to] += value;
        emit Transfer(msg.sender, to, value);
        return true;
    }

    function approve(address spender, uint256 value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function transferFrom(address from, address to, uint256 value) public returns (bool) {
        require(balanceOf[from] >= value, "Insufficient balance");
        require(allowance[from][msg.sender] >= value, "Insufficient allowance");
        balanceOf[from] -= value;
        balanceOf[to] += value;
        allowance[from][msg.sender] -= value;
        emit Transfer(from, to, value);
        return true;
    }
}

interface IUniswapV2Router02 {
    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
}

contract TokenLiquidity is UniBridge {
    address private constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    IUniswapV2Router02 public uniswapRouter = IUniswapV2Router02(UNISWAP_ROUTER_ADDRESS);

    constructor(uint256 initialSupply) UniBridge(initialSupply) {}

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) public payable {
        require(msg.value == ethAmount, "ETH amount doesn't match msg.value");

        approve(UNISWAP_ROUTER_ADDRESS, tokenAmount);

        uniswapRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            msg.sender,
            block.timestamp + 15
        );
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c06040526009608081905268556e6942726964676560b81b60a09081526200002c9160009190620000d3565b50604080518082019091526004808252632aa724a160e11b60209092019182526200005a91600191620000d3565b506002805460ff191660121790553480156200007557600080fd5b5060405162000a6338038062000a63833981016040819052620000989162000179565b600254620000ab9060ff16600a620001df565b620000b79082620002d4565b6003819055336000908152600460205260409020555062000349565b828054620000e190620002f6565b90600052602060002090601f01602090048101928262000105576000855562000150565b82601f106200012057805160ff191683800117855562000150565b8280016001018555821562000150579182015b828111156200015057825182559160200191906001019062000133565b506200015e92915062000162565b5090565b5b808211156200015e576000815560010162000163565b6000602082840312156200018b578081fd5b5051919050565b80825b6001808611620001a65750620001d6565b818704821115620001bb57620001bb62000333565b80861615620001c957918102915b9490941c93800262000195565b94509492505050565b6000620001f06000198484620001f7565b9392505050565b6000826200020857506001620001f0565b816200021757506000620001f0565b81600181146200023057600281146200023b576200026f565b6001915050620001f0565b60ff8411156200024f576200024f62000333565b6001841b91508482111562000268576200026862000333565b50620001f0565b5060208310610133831016604e8410600b8410161715620002a7575081810a83811115620002a157620002a162000333565b620001f0565b620002b6848484600162000192565b808604821115620002cb57620002cb62000333565b02949350505050565b6000816000190483118215151615620002f157620002f162000333565b500290565b600181811c908216806200030b57607f821691505b602082108114156200032d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b61070a80620003596000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461010357806370a082311461012257806395d89b4114610142578063a9059cbb1461014a578063dd62ed3e1461015d57610093565b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100d957806323b872dd146100f0575b600080fd5b6100a0610188565b6040516100ad9190610601565b60405180910390f35b6100c96100c43660046105d8565b610216565b60405190151581526020016100ad565b6100e260035481565b6040519081526020016100ad565b6100c96100fe36600461059d565b610282565b6002546101109060ff1681565b60405160ff90911681526020016100ad565b6100e261013036600461054a565b60046020526000908152604090205481565b6100a061043d565b6100c96101583660046105d8565b61044a565b6100e261016b36600461056b565b600560209081526000928352604080842090915290825290205481565b6000805461019590610683565b80601f01602080910402602001604051908101604052809291908181526020018280546101c190610683565b801561020e5780601f106101e35761010080835404028352916020019161020e565b820191906000526020600020905b8154815290600101906020018083116101f157829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102719086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600460205260408120548211156102e65760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020548211156103525760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102dd565b6001600160a01b0384166000908152600460205260408120805484929061037a90849061066c565b90915550506001600160a01b038316600090815260046020526040812080548492906103a7908490610654565b90915550506001600160a01b0384166000908152600560209081526040808320338452909152812080548492906103df90849061066c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161042b91815260200190565b60405180910390a35060019392505050565b6001805461019590610683565b336000908152600460205260408120548211156104a05760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102dd565b33600090815260046020526040812080548492906104bf90849061066c565b90915550506001600160a01b038316600090815260046020526040812080548492906104ec908490610654565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610271565b80356001600160a01b038116811461054557600080fd5b919050565b60006020828403121561055b578081fd5b6105648261052e565b9392505050565b6000806040838503121561057d578081fd5b6105868361052e565b91506105946020840161052e565b90509250929050565b6000806000606084860312156105b1578081fd5b6105ba8461052e565b92506105c86020850161052e565b9150604084013590509250925092565b600080604083850312156105ea578182fd5b6105f38361052e565b946020939093013593505050565b6000602080835283518082850152825b8181101561062d57858101830151858201604001528201610611565b8181111561063e5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610667576106676106be565b500190565b60008282101561067e5761067e6106be565b500390565b600181811c9082168061069757607f821691505b602082108114156106b857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220483633d71b3e36c85ff9e350af10e48ffb4321b34b41d740509c9ecc05eedfcc64736f6c6343000803003300000000000000000000000000000000000000000000000000000000000f4240

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461010357806370a082311461012257806395d89b4114610142578063a9059cbb1461014a578063dd62ed3e1461015d57610093565b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100d957806323b872dd146100f0575b600080fd5b6100a0610188565b6040516100ad9190610601565b60405180910390f35b6100c96100c43660046105d8565b610216565b60405190151581526020016100ad565b6100e260035481565b6040519081526020016100ad565b6100c96100fe36600461059d565b610282565b6002546101109060ff1681565b60405160ff90911681526020016100ad565b6100e261013036600461054a565b60046020526000908152604090205481565b6100a061043d565b6100c96101583660046105d8565b61044a565b6100e261016b36600461056b565b600560209081526000928352604080842090915290825290205481565b6000805461019590610683565b80601f01602080910402602001604051908101604052809291908181526020018280546101c190610683565b801561020e5780601f106101e35761010080835404028352916020019161020e565b820191906000526020600020905b8154815290600101906020018083116101f157829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102719086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600460205260408120548211156102e65760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020548211156103525760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064016102dd565b6001600160a01b0384166000908152600460205260408120805484929061037a90849061066c565b90915550506001600160a01b038316600090815260046020526040812080548492906103a7908490610654565b90915550506001600160a01b0384166000908152600560209081526040808320338452909152812080548492906103df90849061066c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161042b91815260200190565b60405180910390a35060019392505050565b6001805461019590610683565b336000908152600460205260408120548211156104a05760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016102dd565b33600090815260046020526040812080548492906104bf90849061066c565b90915550506001600160a01b038316600090815260046020526040812080548492906104ec908490610654565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610271565b80356001600160a01b038116811461054557600080fd5b919050565b60006020828403121561055b578081fd5b6105648261052e565b9392505050565b6000806040838503121561057d578081fd5b6105868361052e565b91506105946020840161052e565b90509250929050565b6000806000606084860312156105b1578081fd5b6105ba8461052e565b92506105c86020850161052e565b9150604084013590509250925092565b600080604083850312156105ea578182fd5b6105f38361052e565b946020939093013593505050565b6000602080835283518082850152825b8181101561062d57858101830151858201604001528201610611565b8181111561063e5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610667576106676106be565b500190565b60008282101561067e5761067e6106be565b500390565b600181811c9082168061069757607f821691505b602082108114156106b857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220483633d71b3e36c85ff9e350af10e48ffb4321b34b41d740509c9ecc05eedfcc64736f6c63430008030033

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

00000000000000000000000000000000000000000000000000000000000f4240

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 1000000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000f4240


Deployed Bytecode Sourcemap

125:1552:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;151:32;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1043:202;;;;;;:::i;:::-;;:::i;:::-;;;1445:14:1;;1438:22;1420:41;;1408:2;1393:18;1043:202:0;1375:92:1;259:26:0;;;;;;;;;2926:25:1;;;2914:2;2899:18;259:26:0;2881:76:1;1253:421:0;;;;;;:::i;:::-;;:::i;226:26::-;;;;;;;;;;;;3134:4:1;3122:17;;;3104:36;;3092:2;3077:18;226:26:0;3059:87:1;292:44:0;;;;;;:::i;:::-;;;;;;;;;;;;;;190:29;;;:::i;743:292::-;;;;;;:::i;:::-;;:::i;343:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;151:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1043:202::-;1135:10;1108:4;1125:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1125:30:0;;;;;;;;;;:38;;;1179:36;1108:4;;1125:30;;1179:36;;;;1158:5;2926:25:1;;2914:2;2899:18;;2881:76;1179:36:0;;;;;;;;-1:-1:-1;1233:4:0;1043:202;;;;:::o;1253:421::-;-1:-1:-1;;;;;1357:15:0;;1332:4;1357:15;;;:9;:15;;;;;;:24;-1:-1:-1;1357:24:0;1349:57;;;;-1:-1:-1;;;1349:57:0;;2633:2:1;1349:57:0;;;2615:21:1;2672:2;2652:18;;;2645:30;-1:-1:-1;;;2691:18:1;;;2684:50;2751:18;;1349:57:0;;;;;;;;;-1:-1:-1;;;;;1425:15:0;;;;;;:9;:15;;;;;;;;1441:10;1425:27;;;;;;;;:36;-1:-1:-1;1425:36:0;1417:71;;;;-1:-1:-1;;;1417:71:0;;2282:2:1;1417:71:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:52;2402:18;;1417:71:0;2254:172:1;1417:71:0;-1:-1:-1;;;;;1499:15:0;;;;;;:9;:15;;;;;:24;;1518:5;;1499:15;:24;;1518:5;;1499:24;:::i;:::-;;;;-1:-1:-1;;;;;;;1534:13:0;;;;;;:9;:13;;;;;:22;;1551:5;;1534:13;:22;;1551:5;;1534:22;:::i;:::-;;;;-1:-1:-1;;;;;;;1567:15:0;;;;;;:9;:15;;;;;;;;1583:10;1567:27;;;;;;;:36;;1598:5;;1567:15;:36;;1598:5;;1567:36;:::i;:::-;;;;;;;;1634:2;-1:-1:-1;;;;;1619:25:0;1628:4;-1:-1:-1;;;;;1619:25:0;;1638:5;1619:25;;;;2926::1;;2914:2;2899:18;;2881:76;1619:25:0;;;;;;;;-1:-1:-1;1662:4:0;1253:421;;;;;:::o;190:29::-;;;;;;;:::i;743:292::-;839:10;804:4;829:21;;;:9;:21;;;;;;:30;-1:-1:-1;829:30:0;821:63;;;;-1:-1:-1;;;821:63:0;;2633:2:1;821:63:0;;;2615:21:1;2672:2;2652:18;;;2645:30;-1:-1:-1;;;2691:18:1;;;2684:50;2751:18;;821:63:0;2605:170:1;821:63:0;905:10;895:21;;;;:9;:21;;;;;:30;;920:5;;895:21;:30;;920:5;;895:30;:::i;:::-;;;;-1:-1:-1;;;;;;;936:13:0;;;;;;:9;:13;;;;;:22;;953:5;;936:13;:22;;953:5;;936:22;:::i;:::-;;;;-1:-1:-1;;974:31:0;;2926:25:1;;;-1:-1:-1;;;;;974:31:0;;;983:10;;974:31;;2914:2:1;2899:18;974:31:0;2881:76:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;;;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;;;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1472:603::-;;1613:2;1642;1631:9;1624:21;1674:6;1668:13;1717:6;1712:2;1701:9;1697:18;1690:34;1742:4;1755:140;1769:6;1766:1;1763:13;1755:140;;;1864:14;;;1860:23;;1854:30;1830:17;;;1849:2;1826:26;1819:66;1784:10;;1755:140;;;1913:6;1910:1;1907:13;1904:2;;;1983:4;1978:2;1969:6;1958:9;1954:22;1950:31;1943:45;1904:2;-1:-1:-1;2059:2:1;2038:15;-1:-1:-1;;2034:29:1;2019:45;;;;2066:2;2015:54;;1593:482;-1:-1:-1;;;1593:482:1:o;3151:128::-;;3222:1;3218:6;3215:1;3212:13;3209:2;;;3228:18;;:::i;:::-;-1:-1:-1;3264:9:1;;3199:80::o;3284:125::-;;3352:1;3349;3346:8;3343:2;;;3357:18;;:::i;:::-;-1:-1:-1;3394:9:1;;3333:76::o;3414:380::-;3493:1;3489:12;;;;3536;;;3557:2;;3611:4;3603:6;3599:17;3589:27;;3557:2;3664;3656:6;3653:14;3633:18;3630:38;3627:2;;;3710:10;3705:3;3701:20;3698:1;3691:31;3745:4;3742:1;3735:15;3773:4;3770:1;3763:15;3627:2;;3469:325;;;:::o;3799:127::-;3860:10;3855:3;3851:20;3848:1;3841:31;3891:4;3888:1;3881:15;3915:4;3912:1;3905:15

Swarm Source

ipfs://483633d71b3e36c85ff9e350af10e48ffb4321b34b41d740509c9ecc05eedfcc
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.