Example documentation for a fuse pool lens function
Gets users and their data in a fuse pool under a given account health
getPoolUsersWithData(address Comptroller, uint256 maxHealth) returns (tuple[], uint256, uint256)
Comptroller
: Pool to parsemaxHealth
: Maximum account health to parse forRETURN
: [ FusePoolUser[], closeFactor, liquidationIncentive ]
(FYI: return values will link to their definitions in docs. All return values will be documented at the top as some are complex and many are repeated often in the functions)
fusePoolLens lens = fusePoolLens(0xABCD...);
poolUsers usrs = lens.getPoolUsersWithData(0xEFGH..., 101010101010101010);
const lens = new Web3.eth.Contract(FUSE_POOL_LENS_ABI, 0xABCD...);
const usrs = await lens.methods.getPoolUsersWithData(0xEFGH..., 101010101010101010);
(Example of currrent documentation for fuse from the rari docs)