Datasets:

contract_name
stringlengths
1
238
file_path
stringlengths
4
23.2k
contract_address
stringlengths
42
42
language
stringclasses
2 values
source_code
stringlengths
1
896k
abi
stringlengths
2
46.2k
compiler_version
stringclasses
297 values
optimization_used
bool
2 classes
runs
float64
1
1,000M
constructor_arguments
stringlengths
0
214k
evm_version
stringclasses
11 values
library
stringclasses
376 values
license_type
stringclasses
16 values
proxy
bool
2 classes
implementation
stringlengths
0
42
swarm_source
stringlengths
0
71
BondedECDSAKeep
solidity/contracts/api/IBondedECDSAKeepFactory.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
solidity/contracts/KeepCreator.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
solidity/contracts/CloneFactory.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; /* The MIT License (MIT) Copyright (c) 2018 Murray Software, LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
solidity/contracts/CandidatesPools.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "@keep-network/sortition-pools/contracts/AbstractSortitionPool.sol"; contract CandidatesPools { // Notification that a new sortition pool has been created. event SortitionPoolCreated( address indexed application, address sortitionPool ); // Mapping of po...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
solidity/contracts/GroupSelectionSeed.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/IRandomBeacon.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/BondedSortitionPoolFactory.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "./BondedSortitionPool.sol"; import "./api/IBonding.sol"; import "./api/IStaking.sol"; /// @title Bonded Sortition Pool Factory /// @notice Factory for the creation of new bonded sortition pools. contract BondedSortitionPoolFactory { /// @notice Creates a new bonded sortition pool ins...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/BondedSortitionPool.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "./AbstractSortitionPool.sol"; import "./RNG.sol"; import "./api/IStaking.sol"; import "./api/IBonding.sol"; import "./DynamicArray.sol"; /// @title Bonded Sortition Pool /// @notice A logarithmic data structure used to store the pool of eligible /// operators weighted by their stakes. ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/api/IBonding.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; interface IBonding { // Gives the amount of ETH // the `operator` has made available for bonding by the `bondCreator`. // If the operator doesn't exist, // or the bond creator isn't authorized, // returns 0. function availableUnbondedValue( address operator, ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/api/IStaking.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; interface IStaking { // Gives the amount of KEEP tokens staked by the `operator` // eligible for work selection in the specified `operatorContract`. // // If the operator doesn't exist or hasn't finished initializing, // or the operator contract hasn't been authorized for th...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/AbstractSortitionPool.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "./GasStation.sol"; import "./RNG.sol"; import "./SortitionTree.sol"; import "./DynamicArray.sol"; import "./api/IStaking.sol"; /// @title Abstract Sortition Pool /// @notice Abstract contract encapsulating common logic of all sortition pools. /// @dev Inheriting implementations are exp...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/RNG.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "./Leaf.sol"; import "./Interval.sol"; import "./DynamicArray.sol"; library RNG { using DynamicArray for DynamicArray.UintArray; //////////////////////////////////////////////////////////////////////////// // Parameters for configuration // How many bits a position uses per lev...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/SortitionTree.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "./StackLib.sol"; import "./Branch.sol"; import "./Position.sol"; import "./Leaf.sol"; contract SortitionTree { using StackLib for uint256[]; using Branch for uint256; using Position for uint256; using Leaf for uint256; ////////////////////////////////////////////////////////...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/StackLib.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; library StackLib { function stackPeek(uint256[] storage _array) internal view returns (uint256) { require(_array.length > 0, "No value to peek, array is empty"); return (_array[_array.length - 1]); } function stackPush(uint256[] storage _array, uint256 _element) public { _arr...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/Branch.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; /// @notice The implicit 8-ary trees of the sortition pool /// rely on packing 8 "slots" of 32-bit values into each uint256. /// The Branch library permits efficient calculations on these slots. library Branch { //////////////////////////////////////////////////////////////////////////// //...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/Position.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; library Position { //////////////////////////////////////////////////////////////////////////// // Parameters for configuration // How many bits a position uses per level of the tree; // each branch of the tree contains 2**SLOT_BITS slots. uint256 constant SLOT_BITS = 3; //////////...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/Leaf.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; library Leaf { //////////////////////////////////////////////////////////////////////////// // Parameters for configuration // How many bits a position uses per level of the tree; // each branch of the tree contains 2**SLOT_BITS slots. uint256 constant SLOT_BITS = 3; //////////////...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/sortition-pools/contracts/Interval.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "./Leaf.sol"; import "./DynamicArray.sol"; library Interval { using DynamicArray for DynamicArray.UintArray; //////////////////////////////////////////////////////////////////////////// // Parameters for configuration // How many bits a position uses per level of the tree; //...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/KeepRegistry.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; /// @title KeepRegistry /// @notice Governance owned registry of approved contracts and roles. contract KeepRegistry { enum ContractStatus {New, Approved, Disabled} // Governance role is to enable recovery from key compromise by rekeying // other roles. Also, it can disable operat...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/Authorizations.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/grant/UnlockingSchedule.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; library UnlockingSchedule { using SafeMath for uint256; function getUnlockedAmount( uint256 _now, uint256 grantedAmount, uint256 duration, uint256 start, uint256 cliff ) internal pu...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/utils/AddressArrayUtils.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; library AddressArrayUtils { function contains(address[] memory self, address _address) internal pure returns (bool) { for (uint i = 0; i < self.length; i++) { if (_address == self[i]) { return true; } } ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/GrantStakingPolicy.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; /// @title GrantStakingPolicy /// @notice A staking policy defines the function `getStakeableAmount` /// which calculates how many tokens may be staked from a token grant. contract GrantStakingPolicy { function getStakeableAmount( uint256 _now, uint256 grantedAmount, ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/TokenStakingEscrow.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/TokenSender.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; /// @dev Interface of sender contract for approveAndCall pattern. interface TokenSender { function approveAndCall(address _spender, uint256 _value, bytes calldata _extraData) external; }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/KeepToken.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; /// @dev Interface of recipient contract for approveAndCall pattern. interface tokenRecipient { function receiveApproval(address _from, uint256 _valu...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/RolesLookup.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "../utils/AddressArrayUtils.sol"; import "../StakeDelegatable.sol"; import "../TokenGrant.sol"; import "../ManagedGrant.sol"; /// @title Roles Lookup /// @notice Library facilitating lookup of roles in stake delegation setup. library RolesLookup { using AddressArrayUtils for address...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/staking/LockUtils.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; library LockUtils { struct Lock { address creator; uint96 expiresAt; } /// @notice The LockSet is like an array of unique `uint256`s, /// but additionally supports O(1) membership tests and removals. /// @dev Because the LockSet relies on a mapping, /// ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/StakeDelegatable.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/staking/MinimumStakeSchedule.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; /// @notice MinimumStakeSchedule defines the minimum stake parametrization and /// schedule. It starts with a minimum stake of 100k KEEP. Over the following /// 2 years, the minimum stake is lowered periodically using a uniform stepwi...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/staking/GrantStaking.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "../../TokenGrant.sol"; import "../../TokenStakingEscrow.sol"; import "../..//utils/BytesLib.sol"; import "../RolesLookup.sol"; /// @notice TokenStaking contract library allowing to capture the details of /// delegated grants and offering functions allowing to check grantee /// authenti...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/TokenGrant.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol"; import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./libraries/grant/UnlockingSchedule.sol"; import "./utils/BytesLib.sol"; import "./util...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/staking/Locks.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import { AuthorityVerifier } from "../../Authorizations.sol"; import "./LockUtils.sol"; library Locks { using SafeMath for uint256; using LockUtils for LockUtils.LockSet; event StakeLocked(address indexed operator, addres...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/libraries/staking/TopUps.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../../TokenStakingEscrow.sol"; import "../../utils/OperatorParams.sol"; /// @notice TokenStaking contract library allowing to perform two-step stake /// top-ups for existing delegations. /// Top-up is a two-step process: it ...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
@keep-network/keep-core/contracts/utils/PercentUtils.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity 0.5.17; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; library PercentUtils { using SafeMath for uint256; // Return `b`% of `a` // 200.percent(40) == 80 // Commutative, works both ways function percent(uint256 a, uint256 b) internal pure returns (uint256) { re...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
openzeppelin-solidity/contracts/math/SafeMath.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high l...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
solidity/contracts/KeepBonding.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
BondedECDSAKeep
solidity/contracts/AbstractBonding.sol
0x61935dc4ffc5c5f1d141ac060c0eef04a792d8ee
Solidity
/** ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐...
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"submittingMember","type":"address"},{"indexed":false,"internalType":"bytes","name":"conflictingPublicKey","type":"bytes"}],"name":"ConflictingPublicKeySubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"ad...
v0.5.17+commit.d19bba13
true
200
Default
MIT
false
bzzr://63a152bdeccda501f3e5b77f97918c5500bb7ae07637beba7fae76dbe818bda4
UpgradeBeaconProxyV1
UpgradeBeaconProxyV1.sol
0x88507f1db8d0f9c54a55b0941b785288b1fa3f16
Solidity
pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg /** * @title UpgradeBeaconProxyV1 * @author 0age * @notice This contract delegates all logic, including initialization, to an * implementation contract specified by a hard-coded "upgrade beacon" contract. * Note that this implemen...
[{"inputs":[{"internalType":"bytes","name":"initializationCalldata","type":"bytes"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
v0.5.11+commit.c082d0b4
true
200
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024c4d66de80000000000000000000000007e4a8391c728fed9069b2962699ab416628b19fa00000000000000000000000000000000000000000000000000000000
Default
MIT
false
bzzr://20202020202055706772616465426561636f6e50726f78795631202020202020
VCoin
VCoin.sol
0x5ba0f310636c50a788bdd51a90f022cd15f9aad7
Solidity
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0);...
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":fal...
v0.4.24+commit.e67f0147
false
200
Default
false
bzzr://199847e1b9feb8e0c5d2f570f030a32d5b4beb706f29af303a1bd28842c9b706
UserWallet
UserWallet.sol
0x51664e573049ab1ddbc2dc34f5b4fc290151cdb4
Solidity
pragma solidity ^0.4.24; contract AbstractSweeper { function sweepAll(address token) public returns (bool); function() public { revert(); } Controller controller; constructor(address _controller) public { controller = Controller(_controller); } modifier canSweep() { ...
[{"constant":true,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"tokenFallback","outputs":[],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"sweepAll","outputs":[{...
v0.4.24+commit.e67f0147
true
200
0000000000000000000000007142eb34d2220152dedc5868745079bc6ffa0fdd
Default
None
false
bzzr://ec90d4e55fb69f839fa555767145d6ac7a8f1aa98ed098b09c220c4a34f02ba1
BYTC
BYTC.sol
0xc9a52fde36f4aeed087c2131d807ae5f8fd24df0
Solidity
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // So...
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable...
v0.4.18+commit.9cf6e910
true
200
Default
false
bzzr://0118be04c0a1954dcea55e06fd6eef09b47e1df757ad407acd4c7cae021d8b0f
BucketLenderProxy
canonical-weth/contracts/WETH9.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
contract WETH9 { string public name = "Wrapped Ether"; string public symbol = "WETH"; uint8 public decimals = 18; event Approval(address indexed src, address indexed guy, uint wad); event Transfer(address indexed src, address indexed dst, uint wad); event Deposit(address indexe...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
openzeppelin-solidity/contracts/math/Math.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title Math * @dev Assorted math operations */ library Math { function max64(uint64 _a, uint64 _b) internal pure returns (uint64) { return _a >= _b ? _a : _b; } function min64(uint64 _a, uint64 _b) internal pure returns (uint64) { return _a < _b ? _a : _b; } function max256(uin...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
openzeppelin-solidity/contracts/math/SafeMath.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' n...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
openzeppelin-solidity/contracts/ownership/Ownable.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipT...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/AccessControlledBase.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title AccessControlledBase * @author dYdX * * Base functionality for access control. Requires an implementation to * provide a way to grant and optionally revoke access */ contract AccessControlledBase { // ============ State Variables ============ mapping (address => bool) public author...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/StaticAccessControlled.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title StaticAccessControlled * @author dYdX * * Allows for functions to be access controled * Permissions cannot be changed after a grace period */ contract StaticAccessControlled is AccessControlledBase, Ownable { using SafeMath for uint256; // ============ State Variables ============ ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/GeneralERC20.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title GeneralERC20 * @author dYdX * * Interface for using ERC20 Tokens. We have to use a special interface to call ERC20 functions so * that we dont automatically revert when calling non-compliant tokens that have no return value for * transfer(), transferFrom(), or approve(). */ interface General...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/TokenProxy.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title TokenProxy * @author dYdX * * Used to transfer tokens between addresses which have set allowance on this contract. */ contract TokenProxy is StaticAccessControlled { using SafeMath for uint256; // ============ Constructor ============ constructor( uint256 gracePeriod ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/Vault.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title Vault * @author dYdX * * Holds and transfers tokens in vaults denominated by id * * Vault only supports ERC20 tokens, and will not accept any tokens that require * a tokenFallback or equivalent function (See ERC223, ERC777, etc.) */ contract Vault is StaticAccessControlled { using Sa...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/ReentrancyGuard.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title ReentrancyGuard * @author dYdX * * Optimized version of the well-known ReentrancyGuard contract */ contract ReentrancyGuard { uint256 private _guardCounter = 1; modifier nonReentrant() { uint256 localCounter = _guardCounter + 1; _guardCounter = localCounter; ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
openzeppelin-solidity/contracts/AddressUtils.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * Utility library of inline functions on addresses */ library AddressUtils { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/Fraction.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title Fraction * @author dYdX * * This library contains implementations for fraction structs. */ library Fraction { struct Fraction128 { uint128 num; uint128 den; } }
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/FractionMath.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title FractionMath * @author dYdX * * This library contains safe math functions for manipulating fractions. */ library FractionMath { using SafeMath for uint256; using SafeMath for uint128; /** * Returns a Fraction128 that is equal to a + b * * @param a The first F...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/Exponent.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title Exponent * @author dYdX * * This library contains an implementation for calculating e^X for arbitrary fraction X */ library Exponent { using SafeMath for uint256; using FractionMath for Fraction.Fraction128; // ============ Constants ============ // 2**128 - 1 uint12...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/MathHelpers.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MathHelpers * @author dYdX * * This library helps with common math functions in Solidity */ library MathHelpers { using SafeMath for uint256; /** * Calculates partial value given a numerator and denominator. * * @param numerator Numerator * @param denomin...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/InterestImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title InterestImpl * @author dYdX * * A library that calculates continuously compounded interest for principal, time period, and * interest rate. */ library InterestImpl { using SafeMath for uint256; using FractionMath for Fraction.Fraction128; // ============ Constants ============...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/MarginState.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginState * @author dYdX * * Contains state for the Margin contract. Also used by libraries that implement Margin functions. */ library MarginState { struct State { // Address of the Vault contract address VAULT; // Address of the TokenProxy contract ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/lender/LoanOwner.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title LoanOwner * @author dYdX * * Interface that smart contracts must implement in order to own loans on behalf of other accounts. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ interface LoanOwner { // ======...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/owner/PositionOwner.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title PositionOwner * @author dYdX * * Interface that smart contracts must implement in order to own position on behalf of other * accounts * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ interface PositionOwner { ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/TransferInternal.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title TransferInternal * @author dYdX * * This library contains the implementation for transferring ownership of loans and positions. */ library TransferInternal { // ============ Events ============ /** * Ownership of a loan was transferred to a new address */ event Loa...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/TimestampHelper.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title TimestampHelper * @author dYdX * * Helper to get block timestamps in other formats */ library TimestampHelper { function getBlockTimestamp32() internal view returns (uint32) { // Should not still be in-use in the year 2106 assert(uint256(uin...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/MarginCommon.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginCommon * @author dYdX * * This library contains common functions for implementations of public facing Margin functions */ library MarginCommon { using SafeMath for uint256; // ============ Structs ============ struct Position { address owedToken; // Immuta...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/PayoutRecipient.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title PayoutRecipient * @author dYdX * * Interface that smart contracts must implement in order to be the payoutRecipient in a * closePosition transaction. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ interface Pa...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/lender/CloseLoanDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title CloseLoanDelegator * @author dYdX * * Interface that smart contracts must implement in order to let other addresses close a loan * owned by the smart contract. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ in...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/owner/ClosePositionDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title ClosePositionDelegator * @author dYdX * * Interface that smart contracts must implement in order to let other addresses close a position * owned by the smart contract, allowing more complex logic to control positions. * * NOTE: Any contract implementing this interface should also use OnlyMarg...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/ClosePositionShared.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title ClosePositionShared * @author dYdX * * This library contains shared functionality between ClosePositionImpl and * CloseWithoutCounterpartyImpl */ library ClosePositionShared { using SafeMath for uint256; // ============ Structs ============ struct CloseTx { bytes32 ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/ExchangeWrapper.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title ExchangeWrapper * @author dYdX * * Contract interface that Exchange Wrapper smart contracts must implement in order to interface * with other smart contracts through a common interface. */ interface ExchangeWrapper { // ============ Public Functions ============ /** * Excha...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/ClosePositionImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title ClosePositionImpl * @author dYdX * * This library contains the implementation for the closePosition function of Margin */ library ClosePositionImpl { using SafeMath for uint256; // ============ Events ============ /** * A position was closed or partially closed */ ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/CloseWithoutCounterpartyImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title CloseWithoutCounterpartyImpl * @author dYdX * * This library contains the implementation for the closeWithoutCounterpartyImpl function of * Margin */ library CloseWithoutCounterpartyImpl { using SafeMath for uint256; // ============ Events ============ /** * A position...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/owner/DepositCollateralDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title DepositCollateralDelegator * @author dYdX * * Interface that smart contracts must implement in order to let other addresses deposit heldTokens * into a position owned by the smart contract. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/DepositCollateralImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title DepositCollateralImpl * @author dYdX * * This library contains the implementation for the deposit function of Margin */ library DepositCollateralImpl { using SafeMath for uint256; // ============ Events ============ /** * Additional collateral for a position was posted b...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/lender/ForceRecoverCollateralDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title ForceRecoverCollateralDelegator * @author dYdX * * Interface that smart contracts must implement in order to let other addresses * forceRecoverCollateral() a loan owned by the smart contract. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/TypedSignature.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title TypedSignature * @author dYdX * * Allows for ecrecovery of signed hashes with three different prepended messages: * 1) "" * 2) "\x19Ethereum Signed Message:\n32" * 3) "\x19Ethereum Signed Message:\n\x20" */ library TypedSignature { // Solidity does not offer guarantees about enum va...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/LoanOfferingVerifier.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title LoanOfferingVerifier * @author dYdX * * Interface that smart contracts must implement to be able to make off-chain generated * loan offerings. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ interface LoanOffer...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/BorrowShared.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title BorrowShared * @author dYdX * * This library contains shared functionality between OpenPositionImpl and IncreasePositionImpl. * Both use a Loan Offering and a DEX Order to open or increase a position. */ library BorrowShared { using SafeMath for uint256; // ============ Structs ===...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/lender/IncreaseLoanDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title IncreaseLoanDelegator * @author dYdX * * Interface that smart contracts must implement in order to own loans on behalf of other accounts. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ interface IncreaseLoanDele...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/owner/IncreasePositionDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title IncreasePositionDelegator * @author dYdX * * Interface that smart contracts must implement in order to own position on behalf of other * accounts * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions */ interface Increa...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/IncreasePositionImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title IncreasePositionImpl * @author dYdX * * This library contains the implementation for the increasePosition function of Margin */ library IncreasePositionImpl { using SafeMath for uint256; // ============ Events ============ /* * A position was increased */ even...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/MarginStorage.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginStorage * @author dYdX * * This contract serves as the storage for the entire state of MarginStorage */ contract MarginStorage { MarginState.State state; }
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/LoanGetters.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title LoanGetters * @author dYdX * * A collection of public constant getter functions that allows reading of the state of any loan * offering stored in the dYdX protocol. */ contract LoanGetters is MarginStorage { // ============ Public Constant Functions ============ /** * Gets ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/lender/CancelMarginCallDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title CancelMarginCallDelegator * @author dYdX * * Interface that smart contracts must implement in order to let other addresses cancel a * margin-call for a loan owned by the smart contract. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * t...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/lender/MarginCallDelegator.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginCallDelegator * @author dYdX * * Interface that smart contracts must implement in order to let other addresses margin-call a loan * owned by the smart contract. * * NOTE: Any contract implementing this interface should also use OnlyMargin to control access * to these functions ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/LoanImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title LoanImpl * @author dYdX * * This library contains the implementation for the following functions of Margin: * * - marginCall * - cancelMarginCallImpl * - cancelLoanOffering */ library LoanImpl { using SafeMath for uint256; // ============ Events ============ ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/MarginAdmin.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginAdmin * @author dYdX * * Contains admin functions for the Margin contract * The owner can put Margin into various close-only modes, which will disallow new position creation */ contract MarginAdmin is Ownable { // ============ Enums ============ // All functionality enabled ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/MarginEvents.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginEvents * @author dYdX * * Contains events for the Margin contract. * * NOTE: Any Margin function libraries that use events will need to both define the event here * and copy the event into the library itself as libraries don't support sharing events */ contract MarginEvents { ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/OpenPositionImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title OpenPositionImpl * @author dYdX * * This library contains the implementation for the openPosition function of Margin */ library OpenPositionImpl { using SafeMath for uint256; // ============ Events ============ /** * A position was opened */ event PositionOpen...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/OpenWithoutCounterpartyImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title OpenWithoutCounterpartyImpl * @author dYdX * * This library contains the implementation for the openWithoutCounterparty * function of Margin */ library OpenWithoutCounterpartyImpl { // ============ Structs ============ struct Tx { bytes32 positionId; address pos...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/PositionGetters.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title PositionGetters * @author dYdX * * A collection of public constant getter functions that allows reading of the state of any position * stored in the dYdX protocol. */ contract PositionGetters is MarginStorage { using SafeMath for uint256; // ============ Public Constant Functions =...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/impl/TransferImpl.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title TransferImpl * @author dYdX * * This library contains the implementation for the transferPosition and transferLoan functions of * Margin */ library TransferImpl { // ============ Public Implementation Functions ============ function transferLoanImpl( MarginState.State st...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/Margin.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title Margin * @author dYdX * * This contract is used to facilitate margin trading as per the dYdX protocol */ contract Margin is ReentrancyGuard, MarginStorage, MarginEvents, MarginAdmin, LoanGetters, PositionGetters { using SafeMath for uint256; // ======...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/interfaces/OnlyMargin.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title OnlyMargin * @author dYdX * * Contract to store the address of the main Margin contract and trust only that address to call * certain functions. */ contract OnlyMargin { // ============ Constants ============ // Address of the known and trusted Margin contract on the blockchain ...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/external/lib/LoanOfferingParser.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title LoanOfferingParser * @author dYdX * * Contract for LoanOfferingVerifiers to parse arguments */ contract LoanOfferingParser { // ============ Parsing Functions ============ function parseLoanOffering( address[9] addresses, uint256[7] values256, uint32[4] v...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/external/lib/MarginHelper.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title MarginHelper * @author dYdX * * This library contains helper functions for interacting with Margin */ library MarginHelper { function getPosition( address DYDX_MARGIN, bytes32 positionId ) internal view returns (MarginCommon.Position memory)...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/external/BucketLender/BucketLender.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/* solium-disable-next-line max-len*/ /** * @title BucketLender * @author dYdX * * On-chain shared lender that allows anyone to deposit tokens into this contract to be used to * lend tokens for a particular margin position. * * - Each bucket has three variables: * - Available Amount * - The a...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/lib/AdvancedTokenInteract.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title AdvancedTokenInteract * @author dYdX * * This library contains advanced functions for interacting with ERC20 tokens */ library AdvancedTokenInteract { using TokenInteract for address; /** * Checks if the spender has some amount of allowance. If it doesn't, then set allowance at...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
BucketLenderProxy
contracts/margin/external/BucketLender/BucketLenderProxy.sol
0x4e28e1933d0d5ae3b1951b07648d245b2811cf14
Solidity
/** * @title BucketLenderProxy * @author dYdX * * TokenProxy for BucketLender contracts */ contract BucketLenderProxy { using TokenInteract for address; using AdvancedTokenInteract for address; // ============ Constants ============ // Address of the WETH token address public WE...
[{"constant":false,"inputs":[{"name":"bucketLender","type":"address"},{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"withdrawFrom","type":"address"},{"name":"depositInto"...
v0.4.24+commit.e67f0147
true
10,000
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Default
false
bzzr://38a5fba27c4b7194a285af585748d0b8a0c81dcde4dcad13651a78da9349e7ab
ERC1967Proxy
ERC1967Proxy.sol
0xa9fd280e65f3519da4aa0ace95ad0d6f867f9533
Solidity
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified...
[{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType...
v0.8.2+commit.661d1103
true
200
0000000000000000000000008fd46e7f74e5976837135a42c4bfc946fe5a229f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc9550000000000000000000000001111111111accdf36dbee012fc26bb9fcc1d140d0000000000000000000000009978be4de5beb786da4727a545b14fec...
Default
MIT
false
ipfs://9b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e7
SaffronLPBalanceToken
contracts/lib/Address.sol
0x96853eadcf9da67d6f7a4b6ad28bdc81a96c2188
Solidity
pragma solidity ^0.7.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an e...
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"addre...
v0.7.4+commit.3f05b770
true
99,999
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002353616666726f6e204c502065706f6368203133205320444149207072696e636970616c0000000000000000000000000000000000000000000000000000000000...
Default
MIT
false
ipfs://987173ae06a00aaf418e92fd1f57b81c2c1341970dc2d243d753c1adfa0346ca