Skip to main content

IBPOOLv1

Git Source

Imported at commit 88bb34b23b1627207e4c8d3fcd9efad22332eb5f

Functions

TICK_SPACING

function TICK_SPACING() external view returns (int24);

reserve

function reserve() external view returns (ERC20);

pool

function pool() external view returns (IUniswapV3Pool);

getTicks

function getTicks(Range range_) external view returns (int24 tickLower, int24 tickUpper);

getLiquidity

function getLiquidity(Range range_) external view returns (uint128);

addReservesTo

function addReservesTo(
Range _range,
uint256 _reserves
) external returns (uint256 bAssetsAdded_, uint256 reservesAdded_, uint128 liquidityFinal_);

addLiquidityTo

function addLiquidityTo(
Range _range,
uint128 _liquidity
) external returns (uint256 bAssetsAdded_, uint256 reservesAdded_, uint128 liquidityFinal_);

removeAllFrom

function removeAllFrom(
Range _range
)
external
returns (
uint256 bAssetsRemoved_,
uint256 bAssetFees_,
uint256 reservesRemoved_,
uint256 reserveFees_
);

setTicks

function setTicks(Range _range, int24 _lower, int24 _upper) external;

mint

Mints a set fee to the brs based on the circulating supply.

function mint(address _to, uint256 _amount) external;

burnAllBAssetsInContract

Burns excess bAssets not used in the pool POL.

No need to discount collateralizedBAssets because it's in a separate contract now.

function burnAllBAssetsInContract() external;

setTransferLock

function setTransferLock(bool _locked) external;

locked

function locked() external view returns (bool);

getBaselineValue

Returns the price at the lower tick of the floor position

function getBaselineValue() external view returns (uint256);

getActiveTS

Returns the closest tick spacing boundary above the active tick Formerly "upperAnchorTick"

function getActiveTS() external view returns (int24 activeTS_);

getPosition

Wrapper for liquidity data struct

function getPosition(Range _range) external view returns (Position memory position_);

getBalancesForLiquidity

function getBalancesForLiquidity(
uint160 _sqrtPriceL,
uint160 _sqrtPriceU,
uint128 _liquidity
) external view returns (uint256 bAssets_, uint256 reserves_);

getLiquidityForReserves

function getLiquidityForReserves(
uint160 _sqrtPriceL,
uint160 _sqrtPriceU,
uint256 _reserves,
uint160 _sqrtPriceA
) external view returns (uint128 liquidity_);

getCapacityForLiquidity

function getCapacityForLiquidity(
uint160 _sqrtPriceL,
uint160 _sqrtPriceU,
uint128 _liquidity,
uint160 _sqrtPriceA
) external view returns (uint256 capacity_);

getCapacityForReserves

function getCapacityForReserves(
uint160 _sqrtPriceL,
uint160 _sqrtPriceU,
uint256 _reserves
) external view returns (uint256 capacity_);