MoCHelperLibMock

View Source: contracts/mocks/MoCHelperLibMock.sol

MoCHelperLibMock - version: 0.1.12

Contract Members

Constants & Variables

struct MoCHelperLib.MocLibConfig internal mocLibConfig;

MethodCalled

Parameters

Name
Type
Description

name

bytes32

Functions

Constructor

Arguments

spotInrate

Arguments

Name
Type
Description

tMin

uint256

tMax

uint256

doc0

uint256

doct

uint256

maxBProWithDiscount

Arguments

Name
Type
Description

nB

uint256

nDoc

uint256

utpdu

uint256

peg

uint256

btcPrice

uint256

bproUsdPrice

uint256

spotDiscount

uint256

inrateAvg

Arguments

Name
Type
Description

tMax

uint256

fact

uint256

tMin

uint256

abRat1

uint256

abRat2

uint256

avgInt

Arguments

Name
Type
Description

tMax

uint256

fact

uint256

tMin

uint256

abRat1

uint256

abRat2

uint256

potential

Arguments

Name
Type
Description

tMax

uint256

fact

uint256

tMin

uint256

abRat

uint256

integral

Arguments

Name
Type
Description

tMax

uint256

fact

uint256

tMin

uint256

abRat

uint256

bproSpotDiscountRate

Arguments

Name
Type
Description

bproLiqDiscountRate

uint256

liq

uint256

utpdu

uint256

cov

uint256

bucketTransferAmountInfiniteLeverage

Arguments

Name
Type
Description

nB

uint256

delta

uint256

bucketTransferAmount

Arguments

Name
Type
Description

nB

uint256

lev

uint256

coverage

Arguments

Name
Type
Description

nB

uint256

lB

uint256

leverageFromCoverage

Arguments

Name
Type
Description

cov

uint256

leverage

Arguments

Name
Type
Description

nB

uint256

lB

uint256

maxBProxBtcValue

âš  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.

Arguments

Name
Type
Description

nDoc

uint256

peg

uint256

btcPrice

uint256

lev

uint256

maxBProxBtcValueInfiniteLeverage

âš  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.

Arguments

Name
Type
Description

nDoc

uint256

peg

uint256

btcPrice

uint256

delta

uint256

Last updated