// The struct consists of TokenBalanceMeta structs for// (base) token and its underlying tokens (if any).struct FullTokenBalance { TokenBalanceMeta base; TokenBalanceMeta[] underlying;}// The struct consists of TokenBalance struct// with token address and absolute amount// and ERC20Metadata struct with ERC20-style metadata.// NOTE: 0xEeee...EEeE address is used for ETH.struct TokenBalanceMeta { TokenBalance tokenBalance; ERC20Metadata erc20metadata;}// The struct consists of ERC20-style token metadata.struct ERC20Metadata { string name; string symbol; uint8 decimals;}// The struct consists of token address// and its absolute amount (may be negative).struct TokenBalance { address token; int256 amount;}// The struct consists of token address,// and price per full share (1e18).struct Component { address token; uint256 rate;}
Returns the representation of the token's full share (1e18) in the underlying tokens. This function will show the real underlying tokens (e.g. cDAI and cUSDC for Curve Compound pool).
If used function with tokenBalances as arguments, amounts of underlying tokens will be also calculated.
Returns the representation of the token's full share (1e18) in the underlying tokens. This function will show the deepest underlying tokens (e.g. DAI and USDC for Curve Compound pool).
If used function with tokenBalances as arguments, amounts of underlying tokens will be also calculated.