contract_name
stringlengths
1
61
file_path
stringlengths
5
50.4k
contract_address
stringlengths
42
42
language
stringclasses
1 value
class_name
stringlengths
1
61
class_code
stringlengths
4
330k
class_documentation
stringlengths
0
29.1k
class_documentation_type
stringclasses
6 values
func_name
stringlengths
0
62
func_code
stringlengths
1
303k
func_documentation
stringlengths
2
14.9k
func_documentation_type
stringclasses
4 values
compiler_version
stringlengths
15
42
license_type
stringclasses
14 values
swarm_source
stringlengths
0
71
meta
dict
__index_level_0__
int64
0
60.4k
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
name
function name() external pure returns (string memory);
/** * @dev Allows users to access the token's name */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 4702, 4761 ] }
10,900
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
symbol
function symbol() external pure returns (string memory);
/** * @dev Allows users to access the token's symbol */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 4837, 4898 ] }
10,901
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
decimals
function decimals() external pure returns (uint8);
/** * @dev Allows users to access the number of decimals */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 4978, 5033 ] }
10,902
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getNewCurrentVariables
function getNewCurrentVariables() external view returns ( bytes32 _challenge, uint256[5] memory _requestIds, uint256 _difficutly, uint256 _tip );
/** * @dev Getter for the current variables that include the 5 requests Id's * @return _challenge _requestIds _difficultky _tip the challenge, 5 requestsId, difficulty and tip */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5238, 5476 ] }
10,903
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getTopRequestIDs
function getTopRequestIDs() external view returns (uint256[5] memory _requestIds);
/** * @dev Getter for the top tipped 5 requests Id's * @return _requestIds the 5 requestsId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5597, 5711 ] }
10,904
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getNewVariablesOnDeck
function getNewVariablesOnDeck() external view returns (uint256[5] memory idsOnDeck, uint256[5] memory tipsOnDeck);
/** * @dev Getter for the 5 requests Id's next in line to get mined * @return idsOnDeck tipsOnDeck the 5 requestsId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5857, 6004 ] }
10,905
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
updateTellor
function updateTellor(uint256 _disputeId) external;
/** * @dev Updates the Tellor address after a proposed fork has * passed the vote and day has gone by without a dispute * @param _disputeId the disputeId for the proposed fork */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6215, 6271 ] }
10,906
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
unlockDisputeFee
function unlockDisputeFee(uint256 _disputeId) external;
/** * @dev Allows disputer to unlock the dispute fee * @param _disputeId to unlock fee from */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6392, 6452 ] }
10,907
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
allowance
function allowance(address _user, address _spender) external view returns (uint256);
/** * @param _user address * @param _spender address * @return Returns the remaining allowance of tokens granted to the _spender from the _user */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6631, 6747 ] }
10,908
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
allowedToTrade
function allowedToTrade(address _user, uint256 _amount) external view returns (bool);
/** * @dev This function returns whether or not a given user is allowed to trade a given amount * @param _user address * @param _amount uint of amount * @return true if the user is alloed to trade the amount specified */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 7006, 7123 ] }
10,909
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
balanceOf
function balanceOf(address _user) external view returns (uint256);
/** * @dev Gets balance of owner specified * @param _user is the owner address used to look up the balance * @return Returns the balance associated with the passed in _user */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 7331, 7402 ] }
10,910
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
balanceOfAt
function balanceOfAt(address _user, uint256 _blockNumber) external view returns (uint256);
/** * @dev Queries the balance of _user at a specific _blockNumber * @param _user The address from which the balance will be retrieved * @param _blockNumber The block number when the balance is queried * @return The balance at _blockNumber */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 7683, 7805 ] }
10,911
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
didMine
function didMine(bytes32 _challenge, address _miner) external view returns (bool);
/** * @dev This function tells you if a given challenge has been completed by a given miner * @param _challenge the challenge to search for * @param _miner address that you want to know if they solved the challenge * @return true if the _miner address provided solved the */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 8118, 8232 ] }
10,912
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
didVote
function didVote(uint256 _disputeId, address _address) external view returns (bool);
/** * @dev Checks if an address voted in a given dispute * @param _disputeId to look up * @param _address to look up * @return bool of whether or not party voted */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 8435, 8551 ] }
10,913
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getAddressVars
function getAddressVars(bytes32 _data) external view returns (address);
/** * @dev allows Tellor to read data from the addressVars mapping * @param _data is the keccak256("variable_name") of the variable that is being accessed. * These are examples of how the variables are saved within other functions: * addressVars[keccak256("_owner")] * addressVars[keccak256("tellorContract")] ...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 8931, 9007 ] }
10,914
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getAllDisputeVars
function getAllDisputeVars(uint256 _disputeId) external view returns ( bytes32, bool, bool, bool, address, address, address, uint256[9] memory, int256 );
/** * @dev Gets all dispute variables * @param _disputeId to look up * @return bytes32 hash of dispute * @return bool executed where true if it has been voted on * @return bool disputeVotePassed * @return bool isPropFork true if the dispute is a proposed fork * @return address of reportedMiner * @return...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 9758, 10069 ] }
10,915
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getCurrentVariables
function getCurrentVariables() external view returns ( bytes32, uint256, uint256, string memory, uint256, uint256 );
/** * @dev Getter function for variables for the requestId being currently mined(currentRequestId) * @return current challenge, curretnRequestId, level of difficulty, api/query string, and granularity(number of decimals requested), total tip for the request */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 10356, 10591 ] }
10,916
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getDisputeIdByDisputeHash
function getDisputeIdByDisputeHash(bytes32 _hash) external view returns (uint256);
/** * @dev Checks if a given hash of miner,requestId has been disputed * @param _hash is the sha256(abi.encodePacked(_miners[2],_requestId)); * @return uint disputeId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 10793, 10907 ] }
10,917
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getDisputeUintVars
function getDisputeUintVars(uint256 _disputeId, bytes32 _data) external view returns (uint256);
/** * @dev Checks for uint variables in the disputeUintVars mapping based on the disuputeId * @param _disputeId is the dispute id; * @param _data the variable to pull from the mapping. _data = keccak256("variable_name") where variable_name is * the variables/strings used to save the data in the mapping. The var...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 11408, 11535 ] }
10,918
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getLastNewValue
function getLastNewValue() external view returns (uint256, bool);
/** * @dev Gets the a value for the latest timestamp available * @return value for timestamp of last proof of work submited * @return true if the is a timestamp for the lastNewValue */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 11752, 11822 ] }
10,919
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getLastNewValueById
function getLastNewValueById(uint256 _requestId) external view returns (uint256, bool);
/** * @dev Gets the a value for the latest timestamp available * @param _requestId being requested * @return value for timestamp of last proof of work submited and if true if it exist or 0 and false if it doesn't */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 12070, 12189 ] }
10,920
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getMinedBlockNum
function getMinedBlockNum(uint256 _requestId, uint256 _timestamp) external view returns (uint256);
/** * @dev Gets blocknumber for mined timestamp * @param _requestId to look up * @param _timestamp is the timestamp to look up blocknumber * @return uint of the blocknumber which the dispute was mined */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 12431, 12561 ] }
10,921
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getMinersByRequestIdAndTimestamp
function getMinersByRequestIdAndTimestamp( uint256 _requestId, uint256 _timestamp ) external view returns (address[5] memory);
/** * @dev Gets the 5 miners who mined the value for the specified requestId/_timestamp * @param _requestId to look up * @param _timestamp is the timestamp to look up miners for * @return the 5 miners' addresses */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 12814, 12968 ] }
10,922
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getNewValueCountbyRequestId
function getNewValueCountbyRequestId(uint256 _requestId) external view returns (uint256);
/** * @dev Counts the number of values that have been submited for the request * if called for the currentRequest being mined it can tell you how many miners have submitted a value for that * request so far * @param _requestId the requestId to look up * @return uint count of the number of values received for ...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 13339, 13460 ] }
10,923
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getRequestIdByRequestQIndex
function getRequestIdByRequestQIndex(uint256 _index) external view returns (uint256);
/** * @dev Getter function for the specified requestQ index * @param _index to look up in the requestQ array * @return uint of reqeuestId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 13633, 13750 ] }
10,924
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getRequestIdByTimestamp
function getRequestIdByTimestamp(uint256 _timestamp) external view returns (uint256);
/** * @dev Getter function for requestId based on timestamp * @param _timestamp to check requestId * @return uint of reqeuestId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 13913, 14030 ] }
10,925
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getRequestIdByQueryHash
function getRequestIdByQueryHash(bytes32 _request) external view returns (uint256);
/** * @dev Getter function for requestId based on the queryHash * @param _request is the hash(of string api and granularity) to check if a request already exists * @return uint requestId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 14252, 14367 ] }
10,926
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getRequestQ
function getRequestQ() external view returns (uint256[51] memory);
/** * @dev Getter function for the requestQ array * @return the requestQ arrray */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 14476, 14547 ] }
10,927
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getRequestUintVars
function getRequestUintVars(uint256 _requestId, bytes32 _data) external view returns (uint256);
/** * @dev Allowes access to the uint variables saved in the apiUintVars under the requestDetails struct * for the requestId specified * @param _requestId to look up * @param _data the variable to pull from the mapping. _data = keccak256("variable_name") where variable_name is * the variables/strings used to ...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 15127, 15254 ] }
10,928
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getRequestVars
function getRequestVars(uint256 _requestId) external view returns ( string memory, string memory, bytes32, uint256, uint256, uint256 );
/** * @dev Gets the API struct variables that are not mappings * @param _requestId to look up * @return string of api to query * @return string of symbol of api to query * @return bytes32 hash of string * @return bytes32 of the granularity(decimal places) requested * @return uint of index in requestQ arra...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 15683, 15937 ] }
10,929
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getStakerInfo
function getStakerInfo(address _staker) external view returns (uint256, uint256);
/** * @dev This function allows users to retireve all information about a staker * @param _staker address of staker inquiring about * @return uint current state of staker * @return uint startDate of staking */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 16185, 16298 ] }
10,930
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getSubmissionsByTimestamp
function getSubmissionsByTimestamp(uint256 _requestId, uint256 _timestamp) external view returns (uint256[5] memory);
/** * @dev Gets the 5 miners who mined the value for the specified requestId/_timestamp * @param _requestId to look up * @param _timestamp is the timestampt to look up miners for * @return address[5] array of 5 addresses ofminers that mined the requestId */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 16594, 16743 ] }
10,931
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getTimestampbyRequestIDandIndex
function getTimestampbyRequestIDandIndex(uint256 _requestID, uint256 _index) external view returns (uint256);
/** * @dev Gets the timestamp for the value based on their index * @param _requestID is the requestId to look up * @param _index is the value index to look up * @return uint timestamp */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 16968, 17109 ] }
10,932
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getUintVar
function getUintVar(bytes32 _data) external view returns (uint256);
/** * @dev Getter for the variables saved under the TellorStorageStruct uintVars variable * @param _data the variable to pull from the mapping. _data = keccak256("variable_name") where variable_name is * the variables/strings used to save the data in the mapping. The variables names are * commented out under th...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 17690, 17762 ] }
10,933
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
getVariablesOnDeck
function getVariablesOnDeck() external view returns ( uint256, uint256, string memory );
/** * @dev Getter function for next requestId on queue/request with highest payout at time the function is called * @return onDeck/info on request with highest payout-- RequestId, Totaltips, and API query string */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 18003, 18171 ] }
10,934
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
isInDispute
function isInDispute(uint256 _requestId, uint256 _timestamp) external view returns (bool);
/** * @dev Gets the 5 miners who mined the value for the specified requestId/_timestamp * @param _requestId to look up * @param _timestamp is the timestamp to look up miners for * @return bool true if requestId/timestamp is under dispute */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 18450, 18572 ] }
10,935
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
retrieveData
function retrieveData(uint256 _requestId, uint256 _timestamp) external view returns (uint256);
/** * @dev Retreive value from oracle based on timestamp * @param _requestId being requested * @param _timestamp to retreive data/value from * @return value for timestamp submitted */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 18794, 18920 ] }
10,936
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITellor
interface ITellor { /** * @dev Helps initialize a dispute by assigning it a disputeId * when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the * invalidated value information to POS voting * @param _requestId being disputed * @param _timestamp being dis...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Getter for the total_supply of oracle tokens * @return uint total supply */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 19033, 19093 ] }
10,937
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
LiquityMath
library LiquityMath { using SafeMath for uint; uint internal constant DECIMAL_PRECISION = 1e18; /* Precision for Nominal ICR (independent of price). Rationale for the value: * * - Making it “too high” could lead to overflows. * - Making it “too low” could lead to an ICR equal to zer...
decMul
function decMul(uint x, uint y) internal pure returns (uint decProd) { uint prod_xy = x.mul(y); decProd = prod_xy.add(DECIMAL_PRECISION / 2).div(DECIMAL_PRECISION); }
/* * Multiply two decimal numbers and use normal rounding rules: * -round product up if 19'th mantissa digit >= 5 * -round product down if 19'th mantissa digit < 5 * * Used only inside the exponentiation, _decPow(). */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1145, 1341 ] }
10,938
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
LiquityMath
library LiquityMath { using SafeMath for uint; uint internal constant DECIMAL_PRECISION = 1e18; /* Precision for Nominal ICR (independent of price). Rationale for the value: * * - Making it “too high” could lead to overflows. * - Making it “too low” could lead to an ICR equal to zer...
_decPow
function _decPow(uint _base, uint _minutes) internal pure returns (uint) { if (_minutes > 525600000) {_minutes = 525600000;} // cap to avoid overflow if (_minutes == 0) {return DECIMAL_PRECISION;} uint y = DECIMAL_PRECISION; uint x = _base; uint n = _minutes; // Exponen...
/* * _decPow: Exponentiation function for 18-digit decimal base, and integer exponent n. * * Uses the efficient "exponentiation by squaring" algorithm. O(log(n)) complexity. * * Called by two functions that represent time in units of minutes: * 1) TroveManager._calcDecayedBaseRate * 2) CommunityIssuan...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 2280, 2984 ] }
10,939
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit Owne...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 445, 529 ] }
10,940
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit Owne...
isOwner
function isOwner() public view returns (bool) { return msg.sender == _owner; }
/** * @dev Returns true if the caller is the current owner. */
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 811, 908 ] }
10,941
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit Owne...
_renounceOwnership
function _renounceOwnership() internal { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. * * NOTE: This function is not safe, as it doesn...
NatSpecMultiLine
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1353, 1491 ] }
10,942
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IBorrowerOperations
interface IBorrowerOperations { // --- Events --- event TroveManagerAddressChanged(address _newTroveManagerAddress); event ActivePoolAddressChanged(address _activePoolAddress); event DefaultPoolAddressChanged(address _defaultPoolAddress); event StabilityPoolAddressChanged(address _stability...
setAddresses
function setAddresses( address _troveManagerAddress, address _activePoolAddress, address _defaultPoolAddress, address _stabilityPoolAddress, address _gasPoolAddress, address _collSurplusPoolAddress, address _priceFeedAddress, address _sortedTrovesAddress, address _rubcAddres...
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1006, 1423 ] }
10,943
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ICollSurplusPool
interface ICollSurplusPool { // --- Events --- event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTroveManagerAddress); event ActivePoolAddressChanged(address _newActivePoolAddress); event CollBalanceUpdated(addr...
setAddresses
function setAddresses( address _borrowerOperationsAddress, address _troveManagerAddress, address _activePoolAddress ) external;
// --- Contract setters ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 448, 612 ] }
10,944
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ICommunityIssuance
interface ICommunityIssuance { // --- Events --- event RBSTAddressSet(address _rbstAddress); event StabilityPoolAddressSet(address _stabilityPoolAddress); event TotalRBSTIssuedUpdated(uint _totalRBSTIssued); // --- Functions --- function setAddresses(address _rbstAddress, ...
setAddresses
function setAddresses(address _rbstAddress, address _stabilityPoolAddress) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 272, 361 ] }
10,945
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ILockupContractFactory
interface ILockupContractFactory { // --- Events --- event RBSTAddressSet(address _rbstAddress); event LockupContractDeployedThroughFactory(address _lockupContractAddress, address _beneficiary, uint _unlockTime, address _deployer); // --- Functions --- function setRBSTAddress(addres...
setRBSTAddress
function setRBSTAddress(address _rbstAddress) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 286, 346 ] }
10,946
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IPool
interface IPool { // --- Events --- event ETHBalanceUpdated(uint _newBalance); event RUBCBalanceUpdated(uint _newBalance); event ActivePoolAddressChanged(address _newActivePoolAddress); event DefaultPoolAddressChanged(address _newDefaultPoolAddress); event StabilityPoolAddressC...
// Common interface for the Pools.
LineComment
getETH
function getETH() external view returns (uint);
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 446, 498 ] }
10,947
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IPriceFeed
interface IPriceFeed { // --- Events --- event LastGoodPriceUpdated(uint _lastGoodPrice); // --- Function --- function fetchPrice() external returns (uint); function fetchRUBPriceFeedUpdateTimestamp() external returns(uint256); }
fetchPrice
function fetchPrice() external returns (uint);
// --- Function ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 133, 184 ] }
10,948
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IRBST
interface IRBST is IERC20, IERC2612 { // --- Events --- event CommunityIssuanceAddressSet(address _communityIssuanceAddress); event RBSTStakingAddressSet(address _rbstStakingAddress); event LockupContractFactoryAddressSet(address _lockupContractFactoryAddress); // --- Functions --...
sendToRBSTStaking
function sendToRBSTStaking(address _sender, uint256 _amount) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 329, 404 ] }
10,949
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IRBSTStaking
interface IRBSTStaking { // --- Events -- event RBSTAddressSet(address _rbstAddress); event RUBCAddressSet(address _rubcAddress); event TroveManagerAddressSet(address _troveManager); event BorrowerOperationsAddressSet(address _borrowerOperationsAddress); event ActivePoolAddressSet(...
setAddresses
function setAddresses ( address _rbstAddress, address _rubcAddress, address _troveManagerAddress, address _borrowerOperationsAddress, address _activePoolAddress ) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 802, 1036 ] }
10,950
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IRUBC
interface IRUBC is IERC20, IERC2612 { // --- Events --- event TroveManagerAddressChanged(address _troveManagerAddress); event StabilityPoolAddressChanged(address _newStabilityPoolAddress); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event RUBCBalanc...
mint
function mint(address _account, uint256 _amount) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 390, 453 ] }
10,951
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ISortedTroves
interface ISortedTroves { // --- Events --- event SortedTrovesAddressChanged(address _sortedDoublyLLAddress); event BorrowerOperationsAddressChanged(address _borrowerOperationsAddress); event NodeAdded(address _id, uint _NICR); event NodeRemoved(address _id); // --- Functions ---...
setParams
function setParams(uint256 _size, address _TroveManagerAddress, address _borrowerOperationsAddress) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 328, 442 ] }
10,952
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
setAddresses
function setAddresses( address _borrowerOperationsAddress, address _troveManagerAddress, address _activePoolAddress, address _rubcAddress, address _sortedTrovesAddress, address _priceFeedAddress, address _communityIssuanceAddress ) external;
/* * Called only once on init, to set addresses of other Liquity contracts * Callable only by owner, renounces ownership at the end */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1990, 2304 ] }
10,953
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
provideToSP
function provideToSP(uint _amount, address _frontEndTag) external;
/* * Initial checks: * - Frontend is registered or zero address * - Sender is not a registered frontend * - _amount is not zero * --- * - Triggers a RBST issuance, based on time passed since the last issuance. The RBST issuance is shared between *all* depositors and front ends * - Tags the deposit with th...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 2972, 3043 ] }
10,954
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
withdrawFromSP
function withdrawFromSP(uint _amount) external;
/* * Initial checks: * - _amount is zero or there are no under collateralized troves left in the system * - User has a non zero deposit * --- * - Triggers a RBST issuance, based on time passed since the last issuance. The RBST issuance is shared between *all* depositors and front ends * - Removes the deposi...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 3796, 3848 ] }
10,955
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
withdrawETHGainToTrove
function withdrawETHGainToTrove(address _upperHint, address _lowerHint) external;
/* * Initial checks: * - User has a non zero deposit * - User has an open trove * - User has some ETH gain * --- * - Triggers a RBST issuance, based on time passed since the last issuance. The RBST issuance is shared between *all* depositors and front ends * - Sends all depositor's RBST gain to depositor...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 4516, 4602 ] }
10,956
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
registerFrontEnd
function registerFrontEnd(uint _kickbackRate) external;
/* * Initial checks: * - Frontend (sender) not already registered * - User (sender) has no deposit * - _kickbackRate is in the range [0, 100%] * --- * Front end makes a one-time selection of kickback rate upon registering */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 4877, 4937 ] }
10,957
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
offset
function offset(uint _debt, uint _coll) external;
/* * Initial checks: * - Caller is TroveManager * --- * Cancels out the specified debt against the RUBC contained in the Stability Pool (as far as possible) * and transfers the Trove's ETH collateral from ActivePool to StabilityPool. * Only called by liquidation functions in the TroveManager. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5284, 5338 ] }
10,958
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getETH
function getETH() external view returns (uint);
/* * Returns the total amount of ETH held by the pool, accounted in an internal variable instead of `balance`, * to exclude edge cases like ETH received from a self-destruct. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5542, 5594 ] }
10,959
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getTotalRUBCDeposits
function getTotalRUBCDeposits() external view returns (uint);
/* * Returns RUBC held in the pool. Changes when users deposit/withdraw, and when Trove debt is offset. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5721, 5787 ] }
10,960
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getDepositorETHGain
function getDepositorETHGain(address _depositor) external view returns (uint);
/* * Calculates the ETH gain earned by the deposit since its last snapshots were taken. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5898, 5981 ] }
10,961
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getDepositorRBSTGain
function getDepositorRBSTGain(address _depositor) external view returns (uint);
/* * Calculate the RBST gain earned by a deposit since its last snapshots were taken. * If not tagged with a front end, the depositor gets a 100% cut of what their deposit earned. * Otherwise, their cut of the deposit's earnings is equal to the kickbackRate, set by the front end through * which they made their ...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6343, 6427 ] }
10,962
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getFrontEndRBSTGain
function getFrontEndRBSTGain(address _frontEnd) external view returns (uint);
/* * Return the RBST gain earned by the front end. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6501, 6583 ] }
10,963
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getCompoundedRUBCDeposit
function getCompoundedRUBCDeposit(address _depositor) external view returns (uint);
/* * Return the user's compounded deposit. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6649, 6737 ] }
10,964
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IStabilityPool
interface IStabilityPool { // --- Events --- event StabilityPoolETHBalanceUpdated(uint _newBalance); event StabilityPoolRUBCBalanceUpdated(uint _newBalance); event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTro...
getCompoundedFrontEndStake
function getCompoundedFrontEndStake(address _frontEnd) external view returns (uint);
/* * Return the front end's compounded stake. * * The front end's compounded stake is equal to the sum of its depositors' compounded deposits. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 6915, 7004 ] }
10,965
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
TellorCaller
contract TellorCaller is ITellorCaller { using SafeMath for uint256; ITellor public tellor; constructor (address _tellorMasterAddress) public { tellor = ITellor(_tellorMasterAddress); } /* * getTellorCurrentValue(): identical to getCurrentValue() in UsingTellor.sol * ...
getTellorCurrentValue
function getTellorCurrentValue(uint256 _requestId) external view override returns ( bool ifRetrieve, uint256 value, uint256 _timestampRetrieved ) { uint256 _count = tellor.getNewValueCountbyRequestId(_requestId); uint256 _time = tellor.getTimestamp...
/* * getTellorCurrentValue(): identical to getCurrentValue() in UsingTellor.sol * * @dev Allows the user to get the latest value for the requestId specified * @param _requestId is the requestId to look up the value for * @return ifRetrieve bool true if it is able to retrieve a value, the value, and the value'...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 680, 1263 ] }
10,966
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IActivePool
interface IActivePool is IPool { // --- Events --- event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTroveManagerAddress); event ActivePoolRUBCDebtUpdated(uint _RUBCDebt); event ActivePoolETHBalanceUpdated(uint _ETH); ...
sendETH
function sendETH(address _account, uint _amount) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 346, 409 ] }
10,967
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
IDefaultPool
interface IDefaultPool is IPool { // --- Events --- event TroveManagerAddressChanged(address _newTroveManagerAddress); event DefaultPoolRUBCDebtUpdated(uint _RUBCDebt); event DefaultPoolETHBalanceUpdated(uint _ETH); // --- Functions --- function sendETHToActivePool(uint _amount) external...
sendETHToActivePool
function sendETHToActivePool(uint _amount) external;
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 265, 322 ] }
10,968
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
ITroveManager
interface ITroveManager is ILiquityBase { // --- Events --- event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event PriceFeedAddressChanged(address _newPriceFeedAddress); event RUBCAddressChanged(address _newRUBCAddress); event ActivePoolAddressChanged(addre...
setAddresses
function setAddresses( address _borrowerOperationsAddress, address _activePoolAddress, address _defaultPoolAddress, address _stabilityPoolAddress, address _gasPoolAddress, address _collSurplusPoolAddress, address _priceFeedAddress, address _rubcAddress, address _sortedTroves...
// --- Functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1695, 2149 ] }
10,969
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
LiquityBase
contract LiquityBase is BaseMath, ILiquityBase { using SafeMath for uint; uint constant public _100pct = 1000000000000000000; // 1e18 == 100% // Minimum collateral ratio for individual troves uint constant public MCR = 1100000000000000000; // 110% // Critical system collateral ratio. If t...
_getCompositeDebt
function _getCompositeDebt(uint _debt) internal pure returns (uint) { return _debt.add(RUBC_GAS_COMPENSATION); }
// --- Gas compensation functions --- // Returns the composite debt (drawn debt + gas compensation) of a trove, for the purpose of ICR calculation
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1168, 1299 ] }
10,970
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
LiquityBase
contract LiquityBase is BaseMath, ILiquityBase { using SafeMath for uint; uint constant public _100pct = 1000000000000000000; // 1e18 == 100% // Minimum collateral ratio for individual troves uint constant public MCR = 1100000000000000000; // 110% // Critical system collateral ratio. If t...
_getCollGasCompensation
function _getCollGasCompensation(uint _entireColl) internal pure returns (uint) { return _entireColl / PERCENT_DIVISOR; }
// Return the amount of ETH to be drawn from a trove's collateral and sent as gas compensation.
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 1531, 1671 ] }
10,971
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
setAddresses
function setAddresses( address _borrowerOperationsAddress, address _troveManagerAddress, address _activePoolAddress, address _rubcAddress, address _sortedTrovesAddress, address _priceFeedAddress, address _communityIssuanceAddress ) external override onlyOwner { c...
// --- Contract setters ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 5480, 7075 ] }
10,972
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
getETH
function getETH() external view override returns (uint) { return ETH; }
// --- Getters for public variables. Required by IPool interface ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 7154, 7244 ] }
10,973
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
provideToSP
function provideToSP(uint _amount, address _frontEndTag) external override { _requireFrontEndIsRegisteredOrZero(_frontEndTag); _requireFrontEndNotRegistered(msg.sender); _requireNonZeroAmount(_amount); uint initialDeposit = deposits[msg.sender].initialValue; ICommunityIssuance communityIssu...
/* provideToSP(): * * - Triggers a RBST issuance, based on time passed since the last issuance. The RBST issuance is shared between *all* depositors and front ends * - Tags the deposit with the provided front end tag param, if it's a new deposit * - Sends depositor's accumulated gains (RBST, ETH) to depositor ...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 7936, 9616 ] }
10,974
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
withdrawFromSP
function withdrawFromSP(uint _amount) external override { if (_amount !=0) {_requireNoUnderCollateralizedTroves();} uint initialDeposit = deposits[msg.sender].initialValue; _requireUserHasDeposit(initialDeposit); ICommunityIssuance communityIssuanceCached = communityIssuance; _triggerRBSTIs...
/* withdrawFromSP(): * * - Triggers a RBST issuance, based on time passed since the last issuance. The RBST issuance is shared between *all* depositors and front ends * - Removes the deposit's front end tag if it is a full withdrawal * - Sends all depositor's accumulated gains (RBST, ETH) to depositor * - Se...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 10224, 11903 ] }
10,975
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
withdrawETHGainToTrove
function withdrawETHGainToTrove(address _upperHint, address _lowerHint) external override { uint initialDeposit = deposits[msg.sender].initialValue; _requireUserHasDeposit(initialDeposit); _requireUserHasTrove(msg.sender); _requireUserHasETHGain(msg.sender); ICommunityIssuance communityIssuan...
/* withdrawETHGainToTrove: * - Triggers a RBST issuance, based on time passed since the last issuance. The RBST issuance is shared between *all* depositors and front ends * - Sends all depositor's RBST gain to depositor * - Sends all tagged front end's RBST gain to the tagged front end * - Transfers the deposi...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 12443, 14354 ] }
10,976
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_triggerRBSTIssuance
function _triggerRBSTIssuance(ICommunityIssuance _communityIssuance) internal { uint RBSTIssuance = _communityIssuance.issueRBST(); _updateG(RBSTIssuance); }
// --- RBST issuance functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 14399, 14583 ] }
10,977
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
offset
function offset(uint _debtToOffset, uint _collToAdd) external override { _requireCallerIsTroveManager(); uint totalRUBC = totalRUBCDeposits; // cached to save an SLOAD if (totalRUBC == 0 || _debtToOffset == 0) { return; } _triggerRBSTIssuance(communityIssuance); (uint ETHGainPerUnitStaked, ...
/* * Cancels out the specified debt against the RUBC contained in the Stability Pool (as far as possible) * and transfers the Trove's ETH collateral from ActivePool to StabilityPool. * Only called by liquidation functions in the TroveManager. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 16862, 17490 ] }
10,978
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_computeRewardsPerUnitStaked
function _computeRewardsPerUnitStaked( uint _collToAdd, uint _debtToOffset, uint _totalRUBCDeposits ) internal returns (uint ETHGainPerUnitStaked, uint RUBCLossPerUnitStaked) { /* * Compute the RUBC and ETH rewards. Uses a "feedback" error correction, to keep * the cumulative e...
// --- Offset helper functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 17535, 19631 ] }
10,979
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_updateRewardSumAndProduct
function _updateRewardSumAndProduct(uint _ETHGainPerUnitStaked, uint _RUBCLossPerUnitStaked) internal { uint currentP = P; uint newP; assert(_RUBCLossPerUnitStaked <= DECIMAL_PRECISION); /* * The newProductFactor is the factor by which to change all deposits, due to the depletion of Stability...
// Update the Stability Pool reward sum S and product P
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 19695, 22099 ] }
10,980
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
getDepositorETHGain
function getDepositorETHGain(address _depositor) public view override returns (uint) { uint initialDeposit = deposits[_depositor].initialValue; if (initialDeposit == 0) { return 0; } Snapshots memory snapshots = depositSnapshots[_depositor]; uint ETHGain = _getETHGainFromSnapshots(initialDepos...
/* Calculates the ETH gain earned by the deposit since its last snapshots were taken. * Given by the formula: E = d0 * (S - S(0))/P(0) * where S(0) and P(0) are the depositor's snapshots of the sum S and product P, respectively. * d0 is the last recorded deposit value. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 23223, 23611 ] }
10,981
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
getDepositorRBSTGain
function getDepositorRBSTGain(address _depositor) public view override returns (uint) { uint initialDeposit = deposits[_depositor].initialValue; if (initialDeposit == 0) {return 0;} address frontEndTag = deposits[_depositor].frontEndTag; /* * If not tagged with a front end, the depositor ge...
/* * Calculate the RBST gain earned by a deposit since its last snapshots were taken. * Given by the formula: RBST = d0 * (G - G(0))/P(0) * where G(0) and P(0) are the depositor's snapshots of the sum G and product P, respectively. * d0 is the last recorded deposit value. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 24868, 25768 ] }
10,982
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
getFrontEndRBSTGain
function getFrontEndRBSTGain(address _frontEnd) public view override returns (uint) { uint frontEndStake = frontEndStakes[_frontEnd]; if (frontEndStake == 0) { return 0; } uint kickbackRate = frontEnds[_frontEnd].kickbackRate; uint frontEndShare = uint(DECIMAL_PRECISION).sub(kickbackRate); ...
/* * Return the RBST gain earned by the front end. Given by the formula: E = D0 * (G - G(0))/P(0) * where G(0) and P(0) are the depositor's snapshots of the sum G and product P, respectively. * * D0 is the last recorded value of the front end's total tagged deposits. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 26073, 26631 ] }
10,983
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
getCompoundedRUBCDeposit
function getCompoundedRUBCDeposit(address _depositor) public view override returns (uint) { uint initialDeposit = deposits[_depositor].initialValue; if (initialDeposit == 0) { return 0; } Snapshots memory snapshots = depositSnapshots[_depositor]; uint compoundedDeposit = _getCompoundedStakeFromS...
/* * Return the user's compounded deposit. Given by the formula: d = d0 * P/P(0) * where P(0) is the depositor's snapshot of the product P, taken when they last updated their deposit. */
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 27853, 28272 ] }
10,984
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
getCompoundedFrontEndStake
function getCompoundedFrontEndStake(address _frontEnd) public view override returns (uint) { uint frontEndStake = frontEndStakes[_frontEnd]; if (frontEndStake == 0) { return 0; } Snapshots memory snapshots = frontEndSnapshots[_frontEnd]; uint compoundedFrontEndStake = _getCompoundedStakeFromSnap...
/* * Return the front end's compounded stake. Given by the formula: D = D0 * P/P(0) * where P(0) is the depositor's snapshot of the product P, taken at the last time * when one of the front end's tagged deposits updated their deposit. * * The front end's compounded stake is equal to the sum of its depositors...
Comment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 28646, 29067 ] }
10,985
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_getCompoundedStakeFromSnapshots
function _getCompoundedStakeFromSnapshots( uint initialStake, Snapshots memory snapshots ) internal view returns (uint) { uint snapshot_P = snapshots.P; uint128 scaleSnapshot = snapshots.scale; uint128 epochSnapshot = snapshots.epoch; // If stake was made before a pool-e...
// Internal function, used to calculcate compounded deposits and compounded front end stakes.
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 29169, 30949 ] }
10,986
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_sendRUBCtoStabilityPool
function _sendRUBCtoStabilityPool(address _address, uint _amount) internal { rubc.sendToPool(_address, address(this), _amount); uint newTotalRUBCDeposits = totalRUBCDeposits.add(_amount); totalRUBCDeposits = newTotalRUBCDeposits; emit StabilityPoolRUBCBalanceUpdated(newTotalRUBCDeposits); }
// --- Sender functions for RUBC deposit, ETH gains and RBST gains --- // Transfer the RUBC tokens from the user to the Stability Pool's address, and update its recorded RUBC
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 31139, 31476 ] }
10,987
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_sendRUBCToDepositor
function _sendRUBCToDepositor(address _depositor, uint RUBCWithdrawal) internal { if (RUBCWithdrawal == 0) {return;} rubc.returnFromPool(address(this), _depositor, RUBCWithdrawal); _decreaseRUBC(RUBCWithdrawal); }
// Send RUBC to user and decrease RUBC in Pool
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 31937, 32189 ] }
10,988
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
registerFrontEnd
function registerFrontEnd(uint _kickbackRate) external override { _requireFrontEndNotRegistered(msg.sender); _requireUserHasNoDeposit(msg.sender); _requireValidKickbackRate(_kickbackRate); frontEnds[msg.sender].kickbackRate = _kickbackRate; frontEnds[msg.sender].registered = true; emit...
// --- External Front End functions --- // Front end makes a one-time selection of kickback rate upon registering
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 32318, 32721 ] }
10,989
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_setFrontEndTag
function _setFrontEndTag(address _depositor, address _frontEndTag) internal { deposits[_depositor].frontEndTag = _frontEndTag; emit FrontEndTagSet(_depositor, _frontEndTag); }
// --- Stability Pool Deposit Functionality ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 32779, 32982 ] }
10,990
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
_requireCallerIsActivePool
function _requireCallerIsActivePool() internal view { require( msg.sender == address(activePool), "StabilityPool: Caller is not ActivePool"); }
// --- 'require' functions ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 35928, 36090 ] }
10,991
StabilityPool
StabilityPool.sol
0x9a795fcb3bb0e712f0a681f7463644079eead62d
Solidity
StabilityPool
contract StabilityPool is LiquityBase, Ownable, CheckContract, IStabilityPool { using LiquitySafeMath128 for uint128; string constant public NAME = "StabilityPool"; IBorrowerOperations public borrowerOperations; ITroveManager public troveManager; IRUBC public rubc; // Needed to c...
/* * The Stability Pool holds RUBC tokens deposited by Stability Pool depositors. * * When a trove is liquidated, then depending on system conditions, some of its RUBC debt gets offset with * RUBC in the Stability Pool: that is, the offset debt evaporates, and an equal amount of RUBC tokens in the Stability Po...
Comment
// --- Fallback function ---
LineComment
v0.6.11+commit.5ef660b1
MIT
ipfs://a734944afd5442c2495e6e339d58566052b7f55554e5cc7305e548ca14cf30f5
{ "func_code_index": [ 38287, 38447 ] }
10,992
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Owned
contract Owned { /// @dev `owner` is the only address that can call a function with this /// modifier modifier onlyOwner { if (msg.sender != owner) throw; _; } address public owner; /// @notice The Constructor assigns the message sender to be `owner` function Owned() { owner = msg.send...
/// @title Vault Contract /// @author Jordi Baylina /// @notice This contract holds funds for Campaigns and automates payments, it /// intends to be a safe place to store funds equipped with optional variable /// time delays to allow for an optional escape hatch /// @dev `Owned` is a base level contract that assigns ...
NatSpecSingleLine
Owned
function Owned() { owner = msg.sender;}
/// @notice The Constructor assigns the message sender to be `owner`
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 281, 325 ] }
10,993
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Owned
contract Owned { /// @dev `owner` is the only address that can call a function with this /// modifier modifier onlyOwner { if (msg.sender != owner) throw; _; } address public owner; /// @notice The Constructor assigns the message sender to be `owner` function Owned() { owner = msg.send...
/// @title Vault Contract /// @author Jordi Baylina /// @notice This contract holds funds for Campaigns and automates payments, it /// intends to be a safe place to store funds equipped with optional variable /// time delays to allow for an optional escape hatch /// @dev `Owned` is a base level contract that assigns ...
NatSpecSingleLine
changeOwner
function changeOwner(address _newOwner) onlyOwner { owner = _newOwner; NewOwner(msg.sender, _newOwner); }
/// @notice `owner` can step down and assign some other address to this role /// @param _newOwner The address of the new owner. 0x0 can be used to create /// an unowned neutral vault, however that cannot be undone
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 558, 691 ] }
10,994
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Escapable
contract Escapable is Owned { address public escapeHatchCaller; address public escapeHatchDestination; /// @notice The Constructor assigns the `escapeHatchDestination` and the /// `escapeHatchCaller` /// @param _escapeHatchDestination The address of a safe location (usu a /// Multisig)...
/// @dev `Escapable` is a base level contract built off of the `Owned` /// contract that creates an escape hatch function to send its ether to /// `escapeHatchDestination` when called by the `escapeHatchCaller` in the case that /// something unexpected happens
NatSpecSingleLine
Escapable
function Escapable(address _escapeHatchCaller, address _escapeHatchDestination) { escapeHatchCaller = _escapeHatchCaller; escapeHatchDestination = _escapeHatchDestination; }
/// @notice The Constructor assigns the `escapeHatchDestination` and the /// `escapeHatchCaller` /// @param _escapeHatchDestination The address of a safe location (usu a /// Multisig) to send the ether held in this contract /// @param _escapeHatchCaller The address of a trusted account or contract to /// call `escap...
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 656, 857 ] }
10,995
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Escapable
contract Escapable is Owned { address public escapeHatchCaller; address public escapeHatchDestination; /// @notice The Constructor assigns the `escapeHatchDestination` and the /// `escapeHatchCaller` /// @param _escapeHatchDestination The address of a safe location (usu a /// Multisig)...
/// @dev `Escapable` is a base level contract built off of the `Owned` /// contract that creates an escape hatch function to send its ether to /// `escapeHatchDestination` when called by the `escapeHatchCaller` in the case that /// something unexpected happens
NatSpecSingleLine
escapeHatch
function escapeHatch() onlyEscapeHatchCallerOrOwner { uint total = this.balance; // Send the total balance of this contract to the `escapeHatchDestination` if (!escapeHatchDestination.send(total)) { throw; } EscapeHatchCalled(total); }
/// @notice The `escapeHatch()` should only be called as a last resort if a /// security issue is uncovered or something unexpected happened
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 1313, 1616 ] }
10,996
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Escapable
contract Escapable is Owned { address public escapeHatchCaller; address public escapeHatchDestination; /// @notice The Constructor assigns the `escapeHatchDestination` and the /// `escapeHatchCaller` /// @param _escapeHatchDestination The address of a safe location (usu a /// Multisig)...
/// @dev `Escapable` is a base level contract built off of the `Owned` /// contract that creates an escape hatch function to send its ether to /// `escapeHatchDestination` when called by the `escapeHatchCaller` in the case that /// something unexpected happens
NatSpecSingleLine
changeEscapeCaller
function changeEscapeCaller(address _newEscapeHatchCaller) onlyEscapeHatchCallerOrOwner { escapeHatchCaller = _newEscapeHatchCaller; }
/// @notice Changes the address assigned to call `escapeHatch()` /// @param _newEscapeHatchCaller The address of a trusted account or contract to /// call `escapeHatch()` to send the ether in this contract to the /// `escapeHatchDestination` it would be ideal that `escapeHatchCaller` cannot /// move funds out of `es...
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 1984, 2137 ] }
10,997
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Vault
contract Vault is Escapable { /// @dev `Payment` is a public structure that describes the details of /// each payment making it easy to track the movement of funds /// transparently struct Payment { string name; // What is the purpose of this payment bytes32 reference; // ...
/// @dev `Vault` is a higher level contract built off of the `Escapable` /// contract that holds funds for Campaigns and automates payments.
NatSpecSingleLine
Vault
function Vault( address _escapeHatchCaller, address _escapeHatchDestination, uint _absoluteMinTimeLock, uint _timeLock, address _securityGuard, uint _maxSecurityGuardDelay) Escapable(_escapeHatchCaller, _escapeHatchDestination) { absoluteMinTimeLock = _absoluteMinTimeLock; timeL...
///////// /// @notice The Constructor creates the Vault on the blockchain /// @param _escapeHatchCaller The address of a trusted account or contract to /// call `escapeHatch()` to send the ether in this contract to the /// `escapeHatchDestination` it would be ideal if `escapeHatchCaller` cannot move /// funds out of...
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 3159, 3641 ] }
10,998
Vault
Vault.sol
0x598ab825d607ace3b00d8714c0a141c7ae2e6822
Solidity
Vault
contract Vault is Escapable { /// @dev `Payment` is a public structure that describes the details of /// each payment making it easy to track the movement of funds /// transparently struct Payment { string name; // What is the purpose of this payment bytes32 reference; // ...
/// @dev `Vault` is a higher level contract built off of the `Escapable` /// contract that holds funds for Campaigns and automates payments.
NatSpecSingleLine
numberOfAuthorizedPayments
function numberOfAuthorizedPayments() constant returns (uint) { return authorizedPayments.length; }
///////// /// @notice States the total number of authorized payments in this contract /// @return The number of payments ever authorized even if they were canceled
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://68cd6154297c049e19a780d0ef661705ad3182cbc26e6886b7998f84aa4cfa7b
{ "func_code_index": [ 3853, 3971 ] }
10,999