Source Code
Latest 8 from a total of 8 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Out | 10907979 | 2014 days ago | IN | 0 ETH | 0.00416946 | ||||
| Trade | 8615665 | 2376 days ago | IN | 0 ETH | 0.01575522 | ||||
| Deposit | 8615402 | 2377 days ago | IN | 0.05 ETH | 0.00310752 | ||||
| Withdraw | 8615086 | 2377 days ago | IN | 0 ETH | 0.00631736 | ||||
| Deposit | 8615073 | 2377 days ago | IN | 0 ETH | 0.00376818 | ||||
| Deposit | 8615071 | 2377 days ago | IN | 0 ETH | 0.00406818 | ||||
| Enter Markets | 8607194 | 2378 days ago | IN | 0 ETH | 0.00777948 | ||||
| Enter Markets | 8607126 | 2378 days ago | IN | 0 ETH | 0.00273866 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x63dca371...4b75B43ac The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MarginProxy
Compiler Version
v0.5.10+commit.5a6ea5b1
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2019-09-21
*/
pragma solidity ^0.5.7;
contract MarginProxy {
uint256 _code;
uint256 _owner;
uint256 _parent_address;
uint256 _run_state;
constructor(address owner, address parent_address) public {
assembly {
sstore(_owner_slot, owner)
sstore(_parent_address_slot, parent_address)
sstore(_run_state_slot, 1)
}
}
function () external payable {
assembly {
calldatacopy(0, 0, calldatasize)
let res := delegatecall(gas, sload(_code_slot), 0, calldatasize, 0, 0)
returndatacopy(0, 0, returndatasize)
switch res
case 0 {
revert(0, returndatasize)
}
default {
return(0, returndatasize)
}
}
}
function setCode(address code_address) external {
assembly {
if xor(caller, sload(_parent_address_slot)) {
mstore(32, 1)
revert(63, 1)
}
sstore(_code_slot, code_address)
}
}
function getCode() public view
returns (address code_address) {
assembly {
code_address := sload(_code_slot)
}
}
function getOwner() public view
returns (address owner_address) {
assembly {
owner_address := sload(_owner_slot)
}
}
function getParent() public view
returns (address parent_address) {
assembly {
parent_address := sload(_parent_address_slot)
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"name":"code_address","type":"address"}],"name":"setCode","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getParent","outputs":[{"name":"parent_address","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"owner_address","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCode","outputs":[{"name":"code_address","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"owner","type":"address"},{"name":"parent_address","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]Contract Creation Code
0x608060405234801561001057600080fd5b506040516102963803806102968339818101604052604081101561003357600080fd5b81019080805190602001909291908051906020019092919050505081600155806002556001600355505061022a8061006c6000396000f3fe60806040526004361061003f5760003560e01c80633b1ca3b51461006657806380f76021146100b7578063893d20e81461010e578063ea87963414610165575b366000803760008036600080545af43d6000803e8060008114610061573d6000f35b3d6000fd5b34801561007257600080fd5b506100b56004803603602081101561008957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506101bc565b005b3480156100c357600080fd5b506100cc6101d8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561011a57600080fd5b506101236101e2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017157600080fd5b5061017a6101ec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6002543318156101d15760016020526001603ffd5b8060005550565b6000600254905090565b6000600154905090565b6000805490509056fea265627a7a72305820c1c7f4c7bd26890e7f00477b3ef68b6d45b2399e0b5eb13676dec4ad4737583e64736f6c634300050a0032000000000000000000000000bf33fe4439ef241111c47d022d0222071d4bfe210000000000000000000000001a099e2d91f537fae5523f57d182ce522aa9780c
Deployed Bytecode
0x60806040526004361061003f5760003560e01c80633b1ca3b51461006657806380f76021146100b7578063893d20e81461010e578063ea87963414610165575b366000803760008036600080545af43d6000803e8060008114610061573d6000f35b3d6000fd5b34801561007257600080fd5b506100b56004803603602081101561008957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506101bc565b005b3480156100c357600080fd5b506100cc6101d8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561011a57600080fd5b506101236101e2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017157600080fd5b5061017a6101ec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6002543318156101d15760016020526001603ffd5b8060005550565b6000600254905090565b6000600154905090565b6000805490509056fea265627a7a72305820c1c7f4c7bd26890e7f00477b3ef68b6d45b2399e0b5eb13676dec4ad4737583e64736f6c634300050a0032
Deployed Bytecode Sourcemap
25:1395:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;433:12;430:1;427;414:32;522:1;519;505:12;502:1;489:10;483:17;478:3;465:59;553:14;550:1;547;532:36;583:3;601:1;596:56;;;;693:14;690:1;683:25;596:56;626:14;623:1;616:25;739:226;;8:9:-1;5:2;;;30:1;27;20:12;5:2;739:226:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;739:226:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;1265:152;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1265:152:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1117:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1117:140:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;973:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;973:136:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;739:226;834:20;828:27;820:6;816:40;813:2;;;879:1;875:2;868:13;902:1;898:2;891:13;813:2;940:12;928:10;921:32;804:156;:::o;1265:152::-;1311:22;1384:20;1378:27;1360:45;;1351:61;:::o;1117:140::-;1162:21;1233:11;1227:18;1210:35;;1201:51;:::o;973:136::-;1017:20;1086:10;1080:17;1064:33;;1055:49;:::o
Swarm Source
bzzr://c1c7f4c7bd26890e7f00477b3ef68b6d45b2399e0b5eb13676dec4ad4737583e
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.