-
-
Notifications
You must be signed in to change notification settings - Fork 623
Description
Abstract
I would like to see the amount & value of GIV I have staked within Giveth's staking program. https://giveth.io/givfarm
Motivation
I'm a Giveth maxi so it makes up a notable amount of my portfolio - I would like to have it considered when looking at my assets on rotki.
Specification
Staking is deployed on 3 chains atm - Gnosis, Optimism and Polygon zkEVM. Docs regarding GIVpower staking can be found here:
https://docs.giveth.io/giveconomy/givpower
coingecko listing is here: https://www.coingecko.com/en/coins/giveth
How to get balances
Gnosis - users wrap/stake their GIV tokens into gGIV (Giveth Governance) was used in a complex aragon DAO structure wrapped by 1hive Gardens DAO framework.
TL;DR - get user balance from this function -> https://gnosis.blockscout.com/address/0xfFBAbEb49be77E5254333d5fdfF72920B989425f?tab=read_write_contract#0x70a08231
Optimism
not so complex, balance can be found by querying here -> https://optimistic.etherscan.io/address/0x301c739cf6bfb6b47a74878bdeb13f92f13ae5e7#readProxyContract#F12
Polygon zk-evm
same deal here
https://zkevm.polygonscan.com/address/0xc790f82bf6f8709aa4a56dc11afad7af7c2a9867#readProxyContract#F12