ERC-1155 is a multi-token standard. In other words, ERC-1155 is one type of NFT tokens. It can be treated as a class of ERC-20 tokens, grouped by
ids. For example, token A with id 1 will behave mostly like an ERC-20 token and will have its logic separated from token B with id 2 (while both token A and token B are both inside a single ERC-1155 contract). This provides a gas-efficient way to have a class of ERC-20 tokens without having to deploy a separate contract for each new one.
HomoraBank, while the actual LP tokens can be staked at the corresponding staking contracts to earn yield farming rewards.
id, so that tokens with the same
idimplies the same amount of reward. As an example, let's look at WMasterChef, a Sushiswap LP token wrapper for staking to Sushiswap's MasterChef.
pid– MasterChef pool id for the LP token. This determines which pool and ERC-20 LP token you're actually wrapping.
rewardPerShare– An accumulated SUSHI reward amount per share (at the time of position adjustment).
currentRewardPerShare, which is only updated globally at every action to MasterChef.
NOTE: Each of these wrappers may have different encodings due to different interactions with different protocols.