MoCBProxManager

⚠ 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.

View Source: contracts/MoCBProxManager.sol

↗ Extends: MoCBucketContainer

MoCBProxManager - version: 0.1.12

Contract Members

Constants & Variables

uint256 internal constant MIN_ALLOWED_BALANCE;

uint256[50] private upgradeGap;

Functions

initialize

Initializes the contract

function initialize(address connectorAddress, address _governor, uint256 _c0Cobj, uint256 _x2Cobj) public nonpayable initializer 

Arguments

bproxBalanceOf

returns user balance

function bproxBalanceOf(bytes32 bucket, address userAddress) public view
returns(uint256)

Returns

total balance for the userAddress

Arguments

hasValidBalance

verifies that this user has assigned balance for the given bucket

function hasValidBalance(bytes32 bucket, address userAddress, uint256 index) public view
returns(bool)

Returns

true if the user has assigned balance

Arguments

assignBProx

Assigns the amount of BProx

function assignBProx(bytes32 bucket, address payable account, uint256 bproxAmount, uint256 totalCost) public nonpayable onlyWhitelisted 

Arguments

removeBProx

Removes the amount of BProx and substract BTC cost from bucket

function removeBProx(bytes32 bucket, address payable userAddress, uint256 bproxAmount, uint256 totalCost) public nonpayable onlyWhitelisted 

Arguments

setBProxBalanceOf

Sets the amount of BProx

function setBProxBalanceOf(bytes32 bucket, address payable userAddress, uint256 value) public nonpayable onlyWhitelisted 

Arguments

initializeValues

intializes values of the contract

function initializeValues(address _governor) internal nonpayable

Arguments

Last updated