ETH Price: $1,792.78 (-2.11%)

Contract

0x7942E264e21C5e6CbBA45fe50785a15D3BEb1DA0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

ContractCreator

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Source Code Verified Exact Match

Contract Name

XykCurve

Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled
Yes with 200 runs
Other Settings
default evmVersion
License
GNU AGPLv3
Contract Source Code (Solidity Standard Json-Input format)
Contract Security Audit
No Contract Security Audit SubmittedSubmit Audit Here
Contract ABI
API
[{"inputs":[{"internalType":"uint128","name":"spotPrice","type":"uint128"},{"internalType":"uint128","name":"delta","type":"uint128"},{"internalType":"uint256","name":"numItems","type":"uint256"},{"internalType":"uint256","name":"feeMultiplier","type":"uint256"},{"internalType":"uint256","name":"protocolFeeMultiplier","type":"uint256"}],"name":"getBuyInfo","outputs":[{"internalType":"enum CurveErrorCodes.Error","name":"error","type":"uint8"},{"internalType":"uint128","name":"newSpotPrice","type":"uint128"},{"internalType":"uint128","name":"newDelta","type":"uint128"},{"internalType":"uint256","name":"inputValue","type":"uint256"},{"internalType":"uint256","name":"protocolFee","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint128","name":"spotPrice","type":"uint128"},{"internalType":"uint128","name":"delta","type":"uint128"},{"internalType":"uint256","name":"numItems","type":"uint256"},{"internalType":"uint256","name":"feeMultiplier","type":"uint256"},{"internalType":"uint256","name":"protocolFeeMultiplier","type":"uint256"}],"name":"getSellInfo","outputs":[{"internalType":"enum CurveErrorCodes.Error","name":"error","type":"uint8"},{"internalType":"uint128","name":"newSpotPrice","type":"uint128"},{"internalType":"uint128","name":"newDelta","type":"uint128"},{"internalType":"uint256","name":"outputValue","type":"uint256"},{"internalType":"uint256","name":"protocolFee","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint128","name":"delta","type":"uint128"}],"name":"validateDelta","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint128","name":"newSpotPrice","type":"uint128"}],"name":"validateSpotPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]
608060405234801561001057600080fd5b5061040b806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063097cc63d146100515780630ae67ccc1461007e5780637ca542ac146100a2578063a1bbb2e81461007e575b600080fd5b61006461005f366004610296565b6100b5565b6040516100759594939291906102e3565b60405180910390f35b61009261008c36600461032d565b50600190565b6040519015158152602001610075565b6100646100b0366004610296565b610186565b6000806000806000876000036100da5750600193506000925082915081905080610179565b6001600160801b03808b16908a1660006100f48b83610365565b6100fe848d61037d565b610108919061039c565b905061011d818a670de0b6b3a764000061025f565b93506000610134828c670de0b6b3a764000061025f565b90508461014182846103be565b61014b91906103be565b9550818e6001600160801b031661016291906103be565b975061016e8c84610365565b965060009850505050505b9550955095509550959050565b6000806000806000876000036101ab5750600193506000925082915081905080610179565b6001600160801b03808b16908a16808a106101d9576001600080600080965096509650965096505050610179565b60006101e58b836103be565b6101ef848d61037d565b6101f9919061039c565b905061020e818a670de0b6b3a764000061025f565b93506000610225828c670de0b6b3a764000061025f565b9050846102328284610365565b61023c9190610365565b9550818e6001600160801b03166102539190610365565b975061016e8c846103be565b828202831584820484141761027357600080fd5b0492915050565b80356001600160801b038116811461029157600080fd5b919050565b600080600080600060a086880312156102ae57600080fd5b6102b78661027a565b94506102c56020870161027a565b94979496505050506040830135926060810135926080909101359150565b60a081016003871061030557634e487b7160e01b600052602160045260246000fd5b9581526001600160801b03948516602082015292909316604083015260608201526080015290565b60006020828403121561033f57600080fd5b6103488261027a565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156103785761037861034f565b500190565b60008160001904831182151516156103975761039761034f565b500290565b6000826103b957634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156103d0576103d061034f565b50039056fea26469706673582212201052d5340e8ef3609d2d75435f469ec7a9dd6cda8026d512cb8670b7a0f3796664736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063097cc63d146100515780630ae67ccc1461007e5780637ca542ac146100a2578063a1bbb2e81461007e575b600080fd5b61006461005f366004610296565b6100b5565b6040516100759594939291906102e3565b60405180910390f35b61009261008c36600461032d565b50600190565b6040519015158152602001610075565b6100646100b0366004610296565b610186565b6000806000806000876000036100da5750600193506000925082915081905080610179565b6001600160801b03808b16908a1660006100f48b83610365565b6100fe848d61037d565b610108919061039c565b905061011d818a670de0b6b3a764000061025f565b93506000610134828c670de0b6b3a764000061025f565b90508461014182846103be565b61014b91906103be565b9550818e6001600160801b031661016291906103be565b975061016e8c84610365565b965060009850505050505b9550955095509550959050565b6000806000806000876000036101ab5750600193506000925082915081905080610179565b6001600160801b03808b16908a16808a106101d9576001600080600080965096509650965096505050610179565b60006101e58b836103be565b6101ef848d61037d565b6101f9919061039c565b905061020e818a670de0b6b3a764000061025f565b93506000610225828c670de0b6b3a764000061025f565b9050846102328284610365565b61023c9190610365565b9550818e6001600160801b03166102539190610365565b975061016e8c846103be565b828202831584820484141761027357600080fd5b0492915050565b80356001600160801b038116811461029157600080fd5b919050565b600080600080600060a086880312156102ae57600080fd5b6102b78661027a565b94506102c56020870161027a565b94979496505050506040830135926060810135926080909101359150565b60a081016003871061030557634e487b7160e01b600052602160045260246000fd5b9581526001600160801b03948516602082015292909316604083015260608201526080015290565b60006020828403121561033f57600080fd5b6103488261027a565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156103785761037861034f565b500190565b60008160001904831182151516156103975761039761034f565b500290565b6000826103b957634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156103d0576103d061034f565b50039056fea26469706673582212201052d5340e8ef3609d2d75435f469ec7a9dd6cda8026d512cb8670b7a0f3796664736f6c634300080d0033
Deployed Bytecode Sourcemap
765:3749:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3067:1445;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;914:172;;;;;;:::i;:::-;-1:-1:-1;1075:4:14;;914:172;;;;1734:14:34;;1727:22;1709:41;;1697:2;1682:18;914:172:14;1569:187:34;1394:1613:14;;;;;;:::i;:::-;;:::i;3067:1445::-;3317:11;3342:20;3376:16;3406:19;3439;3487:8;3499:1;3487:13;3483:87;;-1:-1:-1;3524:22:14;;-1:-1:-1;3548:1:14;;-1:-1:-1;3548:1:14;;-1:-1:-1;3548:1:14;;-1:-1:-1;3548:1:14;3516:43;;3483:87;-1:-1:-1;;;;;3640:32:14;;;;3682:26;;3640:20;3836:21;3849:8;3682:26;3836:21;:::i;:::-;3796:23;3807:12;3796:8;:23;:::i;:::-;3795:63;;;;:::i;:::-;3763:95;-1:-1:-1;3932:106:14;3763:95;3972:21;636:4:22;3932:26:14;:106::i;:::-;3918:120;-1:-1:-1;4048:11:14;4062:98;:21;4102:13;636:4:22;4062:26:14;:98::i;:::-;4048:112;-1:-1:-1;4214:11:14;4184:27;4048:112;4184:21;:27;:::i;:::-;:41;;;;:::i;:::-;4170:55;;4311:21;4299:9;-1:-1:-1;;;;;4299:33:14;;;;;:::i;:::-;4276:57;-1:-1:-1;4379:21:14;4392:8;4379:10;:21;:::i;:::-;4360:41;;4497:8;4489:16;;3473:1039;;;;3067:1445;;;;;;;;;;;;:::o;1394:1613::-;1643:11;1668:20;1702:16;1732:18;1764:19;1812:8;1824:1;1812:13;1808:87;;-1:-1:-1;1849:22:14;;-1:-1:-1;1873:1:14;;-1:-1:-1;1873:1:14;;-1:-1:-1;1873:1:14;;-1:-1:-1;1873:1:14;1841:43;;1808:87;-1:-1:-1;;;;;1966:32:14;;;;2008:26;;2119:22;;;2115:96;;2165:22;2189:1;2192;2195;2198;2157:43;;;;;;;;;;;;;;2115:96;2264:28;2336:21;2349:8;2336:10;:21;:::i;:::-;2296:23;2307:12;2296:8;:23;:::i;:::-;2295:63;;;;:::i;:::-;2264:94;-1:-1:-1;2432:105:14;2264:94;2471:21;636:4:22;2432:25:14;:105::i;:::-;2418:119;-1:-1:-1;2547:11:14;2561:97;:20;2600:13;636:4:22;2561:25:14;:97::i;:::-;2547:111;-1:-1:-1;2710:11:14;2681:26;2547:111;2681:20;:26;:::i;:::-;:40;;;;:::i;:::-;2668:53;;2807:20;2795:9;-1:-1:-1;;;;;2795:32:14;;;;;:::i;:::-;2772:56;-1:-1:-1;2874:21:14;2887:8;2874:10;:21;:::i;919:502:22:-;1116:9;;;1217;;1231;;;1228:16;;1214:31;1204:87;;1275:1;1272;1265:12;1204:87;1389:16;;919:502;-1:-1:-1;;919:502:22:o;14:188:34:-;82:20;;-1:-1:-1;;;;;131:46:34;;121:57;;111:85;;192:1;189;182:12;111:85;14:188;;;:::o;207:466::-;302:6;310;318;326;334;387:3;375:9;366:7;362:23;358:33;355:53;;;404:1;401;394:12;355:53;427:29;446:9;427:29;:::i;:::-;417:39;;475:38;509:2;498:9;494:18;475:38;:::i;:::-;207:466;;465:48;;-1:-1:-1;;;;560:2:34;545:18;;532:32;;611:2;596:18;;583:32;;662:3;647:19;;;634:33;;-1:-1:-1;207:466:34:o;678:695::-;932:3;917:19;;966:1;955:13;;945:144;;1011:10;1006:3;1002:20;999:1;992:31;1046:4;1043:1;1036:15;1074:4;1071:1;1064:15;945:144;1098:25;;;-1:-1:-1;;;;;1212:15:34;;;1207:2;1192:18;;1185:43;1264:15;;;;1259:2;1244:18;;1237:43;1311:2;1296:18;;1289:34;1354:3;1339:19;1332:35;678:695;:::o;1378:186::-;1437:6;1490:2;1478:9;1469:7;1465:23;1461:32;1458:52;;;1506:1;1503;1496:12;1458:52;1529:29;1548:9;1529:29;:::i;:::-;1519:39;1378:186;-1:-1:-1;;;1378:186:34:o;1761:127::-;1822:10;1817:3;1813:20;1810:1;1803:31;1853:4;1850:1;1843:15;1877:4;1874:1;1867:15;1893:128;1933:3;1964:1;1960:6;1957:1;1954:13;1951:39;;;1970:18;;:::i;:::-;-1:-1:-1;2006:9:34;;1893:128::o;2026:168::-;2066:7;2132:1;2128;2124:6;2120:14;2117:1;2114:21;2109:1;2102:9;2095:17;2091:45;2088:71;;;2139:18;;:::i;:::-;-1:-1:-1;2179:9:34;;2026:168::o;2199:217::-;2239:1;2265;2255:132;;2309:10;2304:3;2300:20;2297:1;2290:31;2344:4;2341:1;2334:15;2372:4;2369:1;2362:15;2255:132;-1:-1:-1;2401:9:34;;2199:217::o;2421:125::-;2461:4;2489:1;2486;2483:8;2480:34;;;2494:18;;:::i;:::-;-1:-1:-1;2531:9:34;;2421:125::o
Swarm Source
ipfs://1052d5340e8ef3609d2d75435f469ec7a9dd6cda8026d512cb8670b7a0f37966
🤖 Code Reader

Generate instant answers for your smart contract questions using Al Models. Read more.

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

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.