ποΈIntegration 101
Common contract integration points.
View functions
Get list of all the Dens
// IndexManager.sol
struct IIndexAndStatus {
address index;
bool verified;
}
function allIndexes() external view returns (IIndexAndStatus[] memory);Get Den Info (CBR, fees)
// IndexLens.sol
struct Fees {
uint16 burn;
uint16 bond;
uint16 debond;
uint16 buy;
uint16 sell;
}
struct DenInfoMutable {
uint cbr;
Fees fees;
address[] tokens;
address pairedToken;
[...]
}
function getIndexImmutableInfo(address _indexAddress) external view returns (DenInfoImmutable memory info_);Calculate CBR (Manual)
Get amount of brTOKEN received by wrapping TOKEN
Get amount of TOKEN received by unwrapping brTOKEN
Interactions
Wrap TOKEN into brTOKEN
Unwrap brTOKEN into TOKEN
Add liquidity without fees
Remove liquidity without fees
Flash loan underlying tokens
Last updated