ETH Price: $1,627.79 (-0.92%)
Gas: 0.25 Gwei

Contract

0x5B6aC51d9B1CeDE0068a1B26533CAce807f883Ee
 

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

LinearCurve

Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled
Yes with 200 runs
Other Settings
default evmVersion
License
GNU AGPLv3
Contract Source Code (Solidity)
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":"","type":"uint128"}],"name":"validateDelta","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"validateSpotPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]
608060405234801561001057600080fd5b50610542806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063097cc63d146100515780630ae67ccc1461007e5780637ca542ac146100a2578063a1bbb2e81461007e575b600080fd5b61006461005f36600461034c565b6100b5565b604051610075959493929190610399565b60405180910390f35b61009261008c3660046103e3565b50600190565b6040519015158152602001610075565b6100646100b036600461034c565b6101e5565b6000806000806000876000036100da57506001935060009250829150819050806101d8565b60006100ef896001600160801b038c1661041b565b9050808b6001600160801b0316101561012e5760009450846101118b8d610450565b61011c906001610476565b6001600160801b0316995061013b9050565b610138818c6104a1565b94505b60026001600160801b038b1661015260018c6104c9565b61015c908c61041b565b610166919061041b565b61017091906104e0565b6101836001600160801b038d168b61041b565b61018d91906104c9565b92506101a28388670de0b6b3a7640000610315565b91506101b78389670de0b6b3a7640000610315565b6101c190846104c9565b92506101cd82846104c9565b925089935060009550505b9550955095509550959050565b60008060008060008760000361020a57506001935060009250829150819050806101d8565b600061021f896001600160801b038c1661041b565b610232906001600160801b038d166104f4565b90506001600160801b0381111561025b57600260008060008095509550955095509550506101d8565b935083600061026a8b8d610476565b6001600160801b0316905060028b6001600160801b031660018c61028e91906104c9565b610298908d61041b565b6102a2919061041b565b6102ac91906104e0565b6102b6828c61041b565b6102c091906104f4565b93506102d58489670de0b6b3a7640000610315565b92506102ea848a670de0b6b3a7640000610315565b6102f490856104f4565b935061030083856104f4565b60009d969c5099509197509395505050505050565b828202831584820484141761032957600080fd5b0492915050565b80356001600160801b038116811461034757600080fd5b919050565b600080600080600060a0868803121561036457600080fd5b61036d86610330565b945061037b60208701610330565b94979496505050506040830135926060810135926080909101359150565b60a08101600387106103bb57634e487b7160e01b600052602160045260246000fd5b9581526001600160801b03948516602082015292909316604083015260608201526080015290565b6000602082840312156103f557600080fd5b6103fe82610330565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561043557610435610405565b500290565b634e487b7160e01b600052601260045260246000fd5b60006001600160801b038084168061046a5761046a61043a565b92169190910492915050565b60006001600160801b0380831681851680830382111561049857610498610405565b01949350505050565b60006001600160801b03838116908316818110156104c1576104c1610405565b039392505050565b6000828210156104db576104db610405565b500390565b6000826104ef576104ef61043a565b500490565b6000821982111561050757610507610405565b50019056fea264697066735822122051c4e894b7720637ab405ad59690ac2e1a618eefd409106fde34ab0a6312f8d564736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063097cc63d146100515780630ae67ccc1461007e5780637ca542ac146100a2578063a1bbb2e81461007e575b600080fd5b61006461005f36600461034c565b6100b5565b604051610075959493929190610399565b60405180910390f35b61009261008c3660046103e3565b50600190565b6040519015158152602001610075565b6100646100b036600461034c565b6101e5565b6000806000806000876000036100da57506001935060009250829150819050806101d8565b60006100ef896001600160801b038c1661041b565b9050808b6001600160801b0316101561012e5760009450846101118b8d610450565b61011c906001610476565b6001600160801b0316995061013b9050565b610138818c6104a1565b94505b60026001600160801b038b1661015260018c6104c9565b61015c908c61041b565b610166919061041b565b61017091906104e0565b6101836001600160801b038d168b61041b565b61018d91906104c9565b92506101a28388670de0b6b3a7640000610315565b91506101b78389670de0b6b3a7640000610315565b6101c190846104c9565b92506101cd82846104c9565b925089935060009550505b9550955095509550959050565b60008060008060008760000361020a57506001935060009250829150819050806101d8565b600061021f896001600160801b038c1661041b565b610232906001600160801b038d166104f4565b90506001600160801b0381111561025b57600260008060008095509550955095509550506101d8565b935083600061026a8b8d610476565b6001600160801b0316905060028b6001600160801b031660018c61028e91906104c9565b610298908d61041b565b6102a2919061041b565b6102ac91906104e0565b6102b6828c61041b565b6102c091906104f4565b93506102d58489670de0b6b3a7640000610315565b92506102ea848a670de0b6b3a7640000610315565b6102f490856104f4565b935061030083856104f4565b60009d969c5099509197509395505050505050565b828202831584820484141761032957600080fd5b0492915050565b80356001600160801b038116811461034757600080fd5b919050565b600080600080600060a0868803121561036457600080fd5b61036d86610330565b945061037b60208701610330565b94979496505050506040830135926060810135926080909101359150565b60a08101600387106103bb57634e487b7160e01b600052602160045260246000fd5b9581526001600160801b03948516602082015292909316604083015260608201526080015290565b6000602082840312156103f557600080fd5b6103fe82610330565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561043557610435610405565b500290565b634e487b7160e01b600052601260045260246000fd5b60006001600160801b038084168061046a5761046a61043a565b92169190910492915050565b60006001600160801b0380831681851680830382111561049857610498610405565b01949350505050565b60006001600160801b03838116908316818110156104c1576104c1610405565b039392505050565b6000828210156104db576104db610405565b500390565b6000826104ef576104ef61043a565b500490565b6000821982111561050757610507610405565b50019056fea264697066735822122051c4e894b7720637ab405ad59690ac2e1a618eefd409106fde34ab0a6312f8d564736f6c634300080d0033
Deployed Bytecode Sourcemap
10218:6153:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13678:2690;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;10376:194;;;;;;:::i;:::-;-1:-1:-1;10558:4:0;;10376:194;;;;1731:14:1;;1724:22;1706:41;;1694:2;1679:18;10376:194:0;1566:187:1;10911:2702:0;;;;;;:::i;:::-;;:::i;13678:2690::-;13939:11;13965:20;14000:16;14031:19;14065;14181:8;14193:1;14181:13;14177:89;;-1:-1:-1;14219:22:0;;-1:-1:-1;14243:1:0;;-1:-1:-1;14243:1:0;;-1:-1:-1;14243:1:0;;-1:-1:-1;14243:1:0;14211:43;;14177:89;14365:26;14394:16;14402:8;-1:-1:-1;;;;;14394:16:0;;;:::i;:::-;14365:45;;14547:18;14535:9;-1:-1:-1;;;;;14535:30:0;;14531:852;;;14684:1;;-1:-1:-1;14684:1:0;14856:17;14868:5;14856:9;:17;:::i;:::-;:21;;14876:1;14856:21;:::i;:::-;-1:-1:-1;;;;;14824:53:0;;-1:-1:-1;14531:852:0;;-1:-1:-1;14531:852:0;;15332:39;15352:18;15332:9;:39;:::i;:::-;15317:54;;14531:852;15761:1;-1:-1:-1;;;;;15711:33:0;;15723:12;15734:1;15723:8;:12;:::i;:::-;15711:25;;:8;:25;:::i;:::-;:33;;;;:::i;:::-;15710:52;;;;:::i;:::-;15661:33;-1:-1:-1;;;;;15661:33:0;;:8;:33;:::i;:::-;:101;;;;:::i;:::-;15634:128;-1:-1:-1;15868:99:0;15634:128;15899:21;4998:4;15868:16;:99::i;:::-;15854:113;-1:-1:-1;16055:54:0;:11;16072:13;4998:4;16055:16;:54::i;:::-;16040:69;;;;:::i;:::-;;-1:-1:-1;16197:26:0;16212:11;16040:69;16197:26;:::i;:::-;;;16279:5;16268:16;;16352:8;16344:16;;14101:2267;13678:2690;;;;;;;;;;;;:::o;10911:2702::-;11171:11;11197:20;11232:16;11263:18;11296:19;11411:8;11423:1;11411:13;11407:89;;-1:-1:-1;11449:22:0;;-1:-1:-1;11473:1:0;;-1:-1:-1;11473:1:0;;-1:-1:-1;11473:1:0;;-1:-1:-1;11473:1:0;11441:43;;11407:89;11595:21;11631:16;11639:8;-1:-1:-1;;;;;11631:16:0;;;:::i;:::-;11619:28;;-1:-1:-1;;;;;11619:28:0;;;:::i;:::-;11595:52;-1:-1:-1;;;;;;11662:33:0;;11658:112;;;11720:25;11747:1;11750;11753;11756;11712:46;;;;;;;;;;;;;11658:112;11803:13;-1:-1:-1;11803:13:0;12462:20;12485:17;12497:5;12485:9;:17;:::i;:::-;-1:-1:-1;;;;;12462:40:0;;;13008:1;12986:5;-1:-1:-1;;;;;12958:33:0;12981:1;12970:8;:12;;;;:::i;:::-;12958:25;;:8;:25;:::i;:::-;:33;;;;:::i;:::-;12957:52;;;;:::i;:::-;12905:36;12929:12;12905:8;:36;:::i;:::-;:104;;;;:::i;:::-;12879:130;-1:-1:-1;13114:98:0;12879:130;13144:21;4998:4;13114:15;:98::i;:::-;13100:112;-1:-1:-1;13299:53:0;:10;13315:13;4998:4;13299:15;:53::i;:::-;13285:67;;;;:::i;:::-;;-1:-1:-1;13427:25:0;13441:11;13285:67;13427:25;:::i;:::-;13597:8;;10911:2702;;-1:-1:-1;13427:25:0;-1:-1:-1;10911:2702:0;;-1:-1:-1;10911:2702:0;;-1:-1:-1;;;;;;10911:2702:0:o;5289:519::-;5493:9;;;5597;;5611;;;5608:16;;5594:31;5584:89;;5656:1;5653;5646:12;5584:89;5774:16;;5289:519;-1:-1:-1;;5289:519:0:o;14:188:1:-;82:20;;-1:-1:-1;;;;;131:46:1;;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:1;545:18;;532:32;;611:2;596:18;;583:32;;662:3;647:19;;;634:33;;-1:-1:-1;207:466:1:o;678:692::-;929:3;914:19;;963:1;952:13;;942:144;;1008:10;1003:3;999:20;996:1;989:31;1043:4;1040:1;1033:15;1071:4;1068:1;1061:15;942:144;1095:25;;;-1:-1:-1;;;;;1209:15:1;;;1204:2;1189:18;;1182:43;1261:15;;;;1256:2;1241:18;;1234:43;1308:2;1293:18;;1286:34;1351:3;1336:19;1329:35;678:692;:::o;1375:186::-;1434:6;1487:2;1475:9;1466:7;1462:23;1458:32;1455:52;;;1503:1;1500;1493:12;1455:52;1526:29;1545:9;1526:29;:::i;:::-;1516:39;1375:186;-1:-1:-1;;;1375:186:1:o;1758:127::-;1819:10;1814:3;1810:20;1807:1;1800:31;1850:4;1847:1;1840:15;1874:4;1871:1;1864:15;1890:168;1930:7;1996:1;1992;1988:6;1984:14;1981:1;1978:21;1973:1;1966:9;1959:17;1955:45;1952:71;;;2003:18;;:::i;:::-;-1:-1:-1;2043:9:1;;1890:168::o;2063:127::-;2124:10;2119:3;2115:20;2112:1;2105:31;2155:4;2152:1;2145:15;2179:4;2176:1;2169:15;2195:216;2235:1;-1:-1:-1;;;;;2322:2:1;2319:1;2315:10;2344:3;2334:37;;2351:18;;:::i;:::-;2389:10;;2385:20;;;;;2195:216;-1:-1:-1;;2195:216:1:o;2416:253::-;2456:3;-1:-1:-1;;;;;2545:2:1;2542:1;2538:10;2575:2;2572:1;2568:10;2606:3;2602:2;2598:12;2593:3;2590:21;2587:47;;;2614:18;;:::i;:::-;2650:13;;2416:253;-1:-1:-1;;;;2416:253:1:o;2674:246::-;2714:4;-1:-1:-1;;;;;2827:10:1;;;;2797;;2849:12;;;2846:38;;;2864:18;;:::i;:::-;2901:13;;2674:246;-1:-1:-1;;;2674:246:1:o;2925:125::-;2965:4;2993:1;2990;2987:8;2984:34;;;2998:18;;:::i;:::-;-1:-1:-1;3035:9:1;;2925:125::o;3055:120::-;3095:1;3121;3111:35;;3126:18;;:::i;:::-;-1:-1:-1;3160:9:1;;3055:120::o;3180:128::-;3220:3;3251:1;3247:6;3244:1;3241:13;3238:39;;;3257:18;;:::i;:::-;-1:-1:-1;3293:9:1;;3180:128::o
Swarm Source
ipfs://51c4e894b7720637ab405ad59690ac2e1a618eefd409106fde34ab0a6312f8d5
🤖 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.