Skip to main content

UniswapLens

a contract to read tokens & fei out of a contract that reports balance in Uniswap LP tokens.

Functions

constructor

function constructor(
address _depositAddress,
address _core,
address _oracle,
address _backupOracle
) public

Parameters

NameTypeDescription
_depositAddressaddress
_coreaddress
_oracleaddress
_backupOracleaddress

balance

function balance() public returns (uint256)

gets the effective balance of "balanceReportedIn" token if the deposit were fully withdrawn

resistantBalanceAndFei

function resistantBalanceAndFei() public returns (uint256, uint256)

gets the resistant token balance and protocol owned fei of this deposit

_ratioOwned

function _ratioOwned() internal returns (struct Decimal.D256)

ratio of all pair liquidity owned by the deposit contract

liquidityOwned

function liquidityOwned() public returns (uint256)

amount of pair liquidity owned by the deposit contract

Return Values

NameTypeDescription
[0]uint256amount of LP tokens