MoCBucketContainer
Last updated
Last updated
View Source:
↗ Extends: , ↘ Derived Contracts:
MoCBucketContainer - version: 0.1.10
âš This has been deprecated since the from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.
Constants & Variables
Parameters
from
bytes32
to
bytes32
reserves
uint256
stableTokens
uint256
Parameters
name
bytes32
cobj
uint256
Parameters
name
bytes32
nReserve
uint256
nStable
uint256
nRiskProx
uint256
inrateBag
uint256
Arguments
bucket
bytes32
Arguments
bucket
bytes32
Arguments
bucket
bytes32
Arguments
bucket
bytes32
Arguments
bucket
bytes32
Arguments
bucket
bytes32
Arguments
bucket
bytes32
Sets the objective coverage (cobj) on an specficied bucket.
Arguments
_bucket
bytes32
_cobj
uint256
returns true if the bucket is a base bucket
Arguments
bucket
bytes32
Name of the bucket*
returns true if the bucket have stableTokens in it
Arguments
bucket
bytes32
Name of the bucket*
Returns all the address that currently have riskProx position for this bucket
Arguments
bucket
bytes32
bucket of the active address
Returns the number of addresses that currently have riskProx position for this bucket
Arguments
bucket
bytes32
bucket of the active address
Add values to all variables of the bucket
Arguments
bucketName
bytes32
Name of the bucket
reserveTokens
uint256
ReserveToken amount [using reservePrecision]
stableToken
uint256
StableToken amount [using mocPrecision]
riskProx
uint256
RiskProx amount [using mocPrecision]
Substract values to all variables of the bucket
Arguments
bucketName
bytes32
Name of the bucket
reserve
uint256
ReserveToken amount [using reservePrecision]
stableToken
uint256
StableToken amount [using mocPrecision]
riskProx
uint256
RiskProx amount [using mocPrecision]
Moves ReserveTokens from inrateBag to main ReserveTokens bucket bag
Arguments
bucketName
bytes32
Name of the bucket to operate
amount
uint256
value to move from inrateBag to main bag [using reservePrecision]
Removes Interests rate from Inrate bag
Returns
Retrieved value
Arguments
bucketName
bytes32
Name of the bucket to operate
amount
uint256
value to move from inrateBag to main bag [using reservePrecision]
Moves ReserveTokens from origin bucket to destination bucket inrateBag
Arguments
bucketName
bytes32
name of the bucket to from which takes
reserveAmount
uint256
value to add to main bag [using reservePrecision]
Move ReserveTokens and StableTokens from one bucket to another
Arguments
from
bytes32
Name of bucket from where the ReserveTokens will be removed
to
bytes32
Name of bucket from where the ReserveTokens will be added
reserve
uint256
ReserveTokens amount [using reservePrecision]
stableTokens
uint256
StableTokens amount [using mocPrecision]*
Clears completely the origin bucket, removing all StableTokens, ReserveTokens and riskProxs
Arguments
toLiquidate
bytes32
Bucket to be cleared out
destination
bytes32
Bucket that will receive the StableTokens and ReserveTokens
Clears StableTokens and ReserveTokens from bucket origin and sends them to destination bucket
Arguments
origin
bytes32
Bucket to clear out
destination
bytes32
Destination bucket*
checks if a bucket exists
Arguments
bucket
bytes32
name of the bucket
Put all bucket RiskProx balances in zero
Arguments
bucketName
bytes32
Bucket to clear out
Creates bucket
Arguments
name
bytes32
Name of the bucket
cobj
uint256
Target Coverage of the bucket
isBase
bool
Indicates if it is a base bucket (true) or not (false)