Skip to content

feat: add ERC20/ERC4626 methods to staking system #190

@gabririgo

Description

@gabririgo

By adding ERC20 methods to staking implementation:
function totalSupply() public view returns (uint256)
function balanceOf(address _owner) public view returns (uint256 balance)
function transfer(address _to, uint256 _value) public returns (bool success) (abstract)
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) (abstract)
function approve(address _spender, uint256 _value) public returns (bool success) (abstract)
function allowance(address _owner, address _spender) public view returns (uint256 remaining)
event Transfer(address indexed _from, address indexed _to, uint256 _value)

and emitting log Transfer when staking, withdrawing stake, we can have block scanners display StGRG in a user's wallet.

Check if this is relevant as we can have portals track staked GRG regardless of this implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleStale issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions