Pool info interface


this defines the Pool info contract interface

modules(address pool) → address, address, address, address (external)

get information about the underlying staking and reward modules


  • pool: address of Pool contract


  • staking module address

  • reward module address

  • staking module type

  • reward module type

rewards(address pool, address addr, bytes stakingdata, bytes rewarddata) → uint256[] (external)

get pending rewards for arbitrary Pool and user pair


  • pool: address of Pool contract

  • addr: address of user for preview

  • stakingdata: additional data passed to staking module info library

  • rewarddata: additional data passed to reward module info library