Indicates if the contract starts being unstoppable or not
bproxBalanceOf
⚠ This has been deprecated since the Proposal to remove leveraged positions from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.
Gets the BProx balance of an address
Returns
BProx balance of the address
Arguments
Name
Type
Description
bucket
bytes32
Name of the bucket
account
address
Address
getRedeemRequestAt
Gets the RedeemRequest at the queue index position
Returns
redeemer's address and amount he submitted
Arguments
Name
Type
Description
index
uint256
queue position to get
redeemQueueSize
Returns current redeem queue size
Returns
redeem queue size
Arguments
docAmountToRedeem
Returns the total amount of Docs in the redeem queue for redeemer
Returns
total amount of Docs in the redeem queue for redeemer
Arguments
Name
Type
Description
redeemer
address
address for which ^ is computed
redeemDocRequest
Creates or updates the amount of a Doc redeem Request from the msg.sender
Arguments
Name
Type
Description
docAmount
uint256
Amount of Docs to redeem on settlement [using mocPrecision]
alterRedeemRequestAmount
Alters the redeem amount position for the redeemer
Arguments
Name
Type
Description
isAddition
bool
true if adding amount to redeem, false to substract.
delta
uint256
the amount to add/substract to current position
mintBPro
Mints BPRO and pays the comissions of the operation (retrocompatible function).
Arguments
Name
Type
Description
btcToMint
uint256
Amount in BTC to mint
mintBProVendors
Mints BPRO and pays the comissions of the operation.
Arguments
Name
Type
Description
btcToMint
uint256
Amount in BTC to mint
vendorAccount
address payable
Vendor address
redeemBPro
Redeems Bpro Tokens and pays the comissions of the operation (retrocompatible function).
Arguments
Name
Type
Description
bproAmount
uint256
Amount in Bpro
redeemBProVendors
Redeems Bpro Tokens and pays the comissions of the operation
Arguments
Name
Type
Description
bproAmount
uint256
Amount in Bpro
vendorAccount
address payable
Vendor address
mintDoc
Mint Doc tokens and pays the commisions of the operation (retrocompatible function).
Arguments
Name
Type
Description
btcToMint
uint256
Amount in RBTC to mint
mintDocVendors
Mint Doc tokens and pays the commisions of the operation
Arguments
Name
Type
Description
btcToMint
uint256
Amount in RBTC to mint
vendorAccount
address payable
Vendor address
redeemBProx
⚠ This has been deprecated since the Proposal to remove leveraged positions from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.
Redeems Bprox Tokens and pays the comissions of the operation in RBTC (retrocompatible function).
Arguments
Name
Type
Description
bucket
bytes32
Bucket to reedem, for example X2
bproxAmount
uint256
Amount in Bprox
redeemBProxVendors
⚠ This has been deprecated since the Proposal to remove leveraged positions from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.
Redeems Bprox Tokens and pays the comissions of the operation in RBTC
Arguments
Name
Type
Description
bucket
bytes32
Bucket to reedem, for example X2
bproxAmount
uint256
Amount in Bprox
vendorAccount
address payable
Vendor address
mintBProx
⚠ This has been deprecated since the Proposal to remove leveraged positions from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.
⚠ This has been deprecated since the Proposal to remove leveraged positions from the protocol was approved, however it is necessary to maintain the contracts and their documentation for legacy support.