ETH Price: $2,282.56 (+2.50%)
Gas: 48 Gwei

Contract

0x66048F186253123Ac55258151DAD10EE2EFBa9cE
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60c06040153615392022-08-17 23:20:40475 days 4 hrs ago1660778440IN
 Create: OTC
0 ETH0.0037994510.50127639

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OTC

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-08-17
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC20 {
    function transferFrom(address, address, uint) external returns (bool);
}

contract OTC {

    address public constant INV = 0x41D5D79431A913C4aE7d69a668ecdfE5fF9DFB68;
    address public constant DOLA = 0x865377367054516e17014CcdED1e7d814EDC9ce4;
    address public immutable concave;
    address public immutable inverse;
    bool public swapped;

    constructor(address _concave, address _inverse) {
        concave = _concave;
        inverse = _inverse;
    }

    function swap() public {
        require(!swapped);
        IERC20(INV).transferFrom(inverse, concave, 2500 ether);
        IERC20(DOLA).transferFrom(concave, inverse, 283525 ether);
        swapped = true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_concave","type":"address"},{"internalType":"address","name":"_inverse","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DOLA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INV","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"concave","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inverse","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b50604051610710380380610710833981810160405281019061003291906100bc565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505061014a565b6000815190506100b681610133565b92915050565b600080604083850312156100d3576100d261012e565b5b60006100e1858286016100a7565b92505060206100f2858286016100a7565b9150509250929050565b60006101078261010e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b61013c816100fc565b811461014757600080fd5b50565b60805160601c60a05160601c61057f61019160003960008181610145015281816101b101526102bf015260008181610109015281816101d2015261029e015261057f6000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630e29a0331461006757806312ea0b0e1461008557806341650360146100a35780638119c065146100c1578063817ba96a146100cb57806392c592d0146100e9575b600080fd5b61006f610107565b60405161007c919061041d565b60405180910390f35b61008d61012b565b60405161009a919061041d565b60405180910390f35b6100ab610143565b6040516100b8919061041d565b60405180910390f35b6100c9610167565b005b6100d3610376565b6040516100e091906104a6565b60405180910390f35b6100f1610387565b6040516100fe919061041d565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7341d5d79431a913c4ae7d69a668ecdfe5ff9dfb6881565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008054906101000a900460ff161561017f57600080fd5b7341d5d79431a913c4ae7d69a668ecdfe5ff9dfb6873ffffffffffffffffffffffffffffffffffffffff166323b872dd7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000068878678326eac9000006040518463ffffffff1660e01b815260040161021993929190610438565b602060405180830381600087803b15801561023357600080fd5b505af1158015610247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026b91906103b4565b5073865377367054516e17014ccded1e7d814edc9ce473ffffffffffffffffffffffffffffffffffffffff166323b872dd7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000693c09ebc9c82b62f400006040518463ffffffff1660e01b81526004016103079392919061046f565b602060405180830381600087803b15801561032157600080fd5b505af1158015610335573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035991906103b4565b5060016000806101000a81548160ff021916908315150217905550565b60008054906101000a900460ff1681565b73865377367054516e17014ccded1e7d814edc9ce481565b6000815190506103ae81610532565b92915050565b6000602082840312156103ca576103c961052d565b5b60006103d88482850161039f565b91505092915050565b6103ea816104c1565b82525050565b6103f9816104d3565b82525050565b61040881610509565b82525050565b6104178161051b565b82525050565b600060208201905061043260008301846103e1565b92915050565b600060608201905061044d60008301866103e1565b61045a60208301856103e1565b61046760408301846103ff565b949350505050565b600060608201905061048460008301866103e1565b61049160208301856103e1565b61049e604083018461040e565b949350505050565b60006020820190506104bb60008301846103f0565b92915050565b60006104cc826104df565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610514826104ff565b9050919050565b6000610526826104ff565b9050919050565b600080fd5b61053b816104d3565b811461054657600080fd5b5056fea2646970667358221220fd105073208f9bad404a152b24762a0c4391017b73982d665a22a1b5434ca5d964736f6c63430008070033000000000000000000000000226e7af139a0f34c6771deb252f9988876ac1ced0000000000000000000000009d5df30f475cea915b1ed4c0cca59255c897b61b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80630e29a0331461006757806312ea0b0e1461008557806341650360146100a35780638119c065146100c1578063817ba96a146100cb57806392c592d0146100e9575b600080fd5b61006f610107565b60405161007c919061041d565b60405180910390f35b61008d61012b565b60405161009a919061041d565b60405180910390f35b6100ab610143565b6040516100b8919061041d565b60405180910390f35b6100c9610167565b005b6100d3610376565b6040516100e091906104a6565b60405180910390f35b6100f1610387565b6040516100fe919061041d565b60405180910390f35b7f000000000000000000000000226e7af139a0f34c6771deb252f9988876ac1ced81565b7341d5d79431a913c4ae7d69a668ecdfe5ff9dfb6881565b7f0000000000000000000000009d5df30f475cea915b1ed4c0cca59255c897b61b81565b60008054906101000a900460ff161561017f57600080fd5b7341d5d79431a913c4ae7d69a668ecdfe5ff9dfb6873ffffffffffffffffffffffffffffffffffffffff166323b872dd7f0000000000000000000000009d5df30f475cea915b1ed4c0cca59255c897b61b7f000000000000000000000000226e7af139a0f34c6771deb252f9988876ac1ced68878678326eac9000006040518463ffffffff1660e01b815260040161021993929190610438565b602060405180830381600087803b15801561023357600080fd5b505af1158015610247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026b91906103b4565b5073865377367054516e17014ccded1e7d814edc9ce473ffffffffffffffffffffffffffffffffffffffff166323b872dd7f000000000000000000000000226e7af139a0f34c6771deb252f9988876ac1ced7f0000000000000000000000009d5df30f475cea915b1ed4c0cca59255c897b61b693c09ebc9c82b62f400006040518463ffffffff1660e01b81526004016103079392919061046f565b602060405180830381600087803b15801561032157600080fd5b505af1158015610335573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035991906103b4565b5060016000806101000a81548160ff021916908315150217905550565b60008054906101000a900460ff1681565b73865377367054516e17014ccded1e7d814edc9ce481565b6000815190506103ae81610532565b92915050565b6000602082840312156103ca576103c961052d565b5b60006103d88482850161039f565b91505092915050565b6103ea816104c1565b82525050565b6103f9816104d3565b82525050565b61040881610509565b82525050565b6104178161051b565b82525050565b600060208201905061043260008301846103e1565b92915050565b600060608201905061044d60008301866103e1565b61045a60208301856103e1565b61046760408301846103ff565b949350505050565b600060608201905061048460008301866103e1565b61049160208301856103e1565b61049e604083018461040e565b949350505050565b60006020820190506104bb60008301846103f0565b92915050565b60006104cc826104df565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610514826104ff565b9050919050565b6000610526826104ff565b9050919050565b600080fd5b61053b816104d3565b811461054657600080fd5b5056fea2646970667358221220fd105073208f9bad404a152b24762a0c4391017b73982d665a22a1b5434ca5d964736f6c63430008070033

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

000000000000000000000000226e7af139a0f34c6771deb252f9988876ac1ced0000000000000000000000009d5df30f475cea915b1ed4c0cca59255c897b61b

-----Decoded View---------------
Arg [0] : _concave (address): 0x226e7AF139a0F34c6771DeB252F9988876ac1Ced
Arg [1] : _inverse (address): 0x9D5Df30F475CEA915b1ed4C0CCa59255C897b61B

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000226e7af139a0f34c6771deb252f9988876ac1ced
Arg [1] : 0000000000000000000000009d5df30f475cea915b1ed4c0cca59255c897b61b


Deployed Bytecode Sourcemap

163:629:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;344:32;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;185:72;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;383:32;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;572:217;;;:::i;:::-;;422:19;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;264:73;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;344:32;;;:::o;185:72::-;215:42;185:72;:::o;383:32::-;;;:::o;572:217::-;615:7;;;;;;;;;;614:8;606:17;;;;;;215:42;634:24;;;659:7;668;677:10;634:54;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;295:42;699:25;;;725:7;734;743:12;699:57;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;777:4;767:7;;:14;;;;;;;;;;;;;;;;;;572:217::o;422:19::-;;;;;;;;;;;;:::o;264:73::-;295:42;264:73;:::o;7:137:1:-;61:5;92:6;86:13;77:22;;108:30;132:5;108:30;:::i;:::-;7:137;;;;:::o;150:345::-;217:6;266:2;254:9;245:7;241:23;237:32;234:119;;;272:79;;:::i;:::-;234:119;392:1;417:61;470:7;461:6;450:9;446:22;417:61;:::i;:::-;407:71;;363:125;150:345;;;;:::o;501:118::-;588:24;606:5;588:24;:::i;:::-;583:3;576:37;501:118;;:::o;625:109::-;706:21;721:5;706:21;:::i;:::-;701:3;694:34;625:109;;:::o;740:189::-;856:66;916:5;856:66;:::i;:::-;851:3;844:79;740:189;;:::o;935:193::-;1053:68;1115:5;1053:68;:::i;:::-;1048:3;1041:81;935:193;;:::o;1134:222::-;1227:4;1265:2;1254:9;1250:18;1242:26;;1278:71;1346:1;1335:9;1331:17;1322:6;1278:71;:::i;:::-;1134:222;;;;:::o;1362:500::-;1540:4;1578:2;1567:9;1563:18;1555:26;;1591:71;1659:1;1648:9;1644:17;1635:6;1591:71;:::i;:::-;1672:72;1740:2;1729:9;1725:18;1716:6;1672:72;:::i;:::-;1754:101;1851:2;1840:9;1836:18;1827:6;1754:101;:::i;:::-;1362:500;;;;;;:::o;1868:504::-;2048:4;2086:2;2075:9;2071:18;2063:26;;2099:71;2167:1;2156:9;2152:17;2143:6;2099:71;:::i;:::-;2180:72;2248:2;2237:9;2233:18;2224:6;2180:72;:::i;:::-;2262:103;2361:2;2350:9;2346:18;2337:6;2262:103;:::i;:::-;1868:504;;;;;;:::o;2378:210::-;2465:4;2503:2;2492:9;2488:18;2480:26;;2516:65;2578:1;2567:9;2563:17;2554:6;2516:65;:::i;:::-;2378:210;;;;:::o;2675:96::-;2712:7;2741:24;2759:5;2741:24;:::i;:::-;2730:35;;2675:96;;;:::o;2777:90::-;2811:7;2854:5;2847:13;2840:21;2829:32;;2777:90;;;:::o;2873:126::-;2910:7;2950:42;2943:5;2939:54;2928:65;;2873:126;;;:::o;3005:77::-;3042:7;3071:5;3060:16;;3005:77;;;:::o;3088:142::-;3167:9;3200:24;3218:5;3200:24;:::i;:::-;3187:37;;3088:142;;;:::o;3236:144::-;3317:9;3350:24;3368:5;3350:24;:::i;:::-;3337:37;;3236:144;;;:::o;3509:117::-;3618:1;3615;3608:12;3632:116;3702:21;3717:5;3702:21;:::i;:::-;3695:5;3692:32;3682:60;;3738:1;3735;3728:12;3682:60;3632:116;:::o

Swarm Source

ipfs://fd105073208f9bad404a152b24762a0c4391017b73982d665a22a1b5434ca5d9

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.