You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Represent GRG staking proxy user balances as ERC4626 to allow easier and better data display by service providers.
Motivation
External applications now cannot see a wallet's staked GRG balance (vault balance plus unclaimed rewards). This requires developing a custom extension to service providers like DefiLlama or Zapper.
ERC4626 provides a standard for vaults, which exposes methods that return the underlying token balance. By implementing this standard, external service providers could display staked GRG in a user's wallet and their $ value. This would be particularly useful for Etherscan display, where it is not possible to develop a custom smart contract position fetcher.
Specification
use OpenZeppelin ERC4626 standard;
import interface methods;
use their implementation;
do not implement transfer, transferFrom and approve methods as GRG staked positions are non-transferable.
Notice: assert ERC-4626 inflation attack cannot be executed.
The text was updated successfully, but these errors were encountered:
gabririgo
changed the title
feat: Represent staking proxy balances as ERC4626
feat: Represent GRG Staking Proxy balances as ERC4626
Mar 6, 2024
gabririgo
changed the title
feat: Represent GRG Staking Proxy balances as ERC4626
feat(staking): Represent GRG Staking Proxy balances as ERC4626
Mar 6, 2024
gabririgo
changed the title
feat(staking): Represent GRG Staking Proxy balances as ERC4626
Represent GRG Staking Proxy balances as ERC4626
Mar 6, 2024
Summary
Represent GRG staking proxy user balances as ERC4626 to allow easier and better data display by service providers.
Motivation
External applications now cannot see a wallet's staked GRG balance (vault balance plus unclaimed rewards). This requires developing a custom extension to service providers like DefiLlama or Zapper.
ERC4626 provides a standard for vaults, which exposes methods that return the underlying token balance. By implementing this standard, external service providers could display staked GRG in a user's wallet and their $ value. This would be particularly useful for Etherscan display, where it is not possible to develop a custom smart contract position fetcher.
Specification
Notice: assert ERC-4626 inflation attack cannot be executed.
Notes
OpenZeppelin reference code
ERC-4626 inflation attacks
The text was updated successfully, but these errors were encountered: