GYSR documentation
Search…
Pool info library
Interface for pool info library

PoolInfo

this implements the Pool info library, which provides read-only convenience functions to query additional information and metadata about the core Pool contract.
​
modules(address pool) β†’ address, address, address, address (public)
get information about the underlying staking and reward modules
Parameters
  • pool: address of Pool contract
Returns
  • staking module address
  • reward module address
  • staking module type
  • reward module type
​
register(address factory, address info) (external)
register factory to info module
Parameters
  • factory: address of factory
  • info: address of info module contract
​
rewards(address pool, address addr) β†’ uint256[] rewards_ (public)
get pending rewards for arbitrary Pool and user pair
Parameters
  • pool: address of Pool contract
  • addr: address of user for preview
Returns
  • pending rewards for pool and user
Copy link