elimu-ai / web3-wiki

💎 Wiki related to Web3 & finances
https://tokenlog.generalmagic.io/elimu-ai/web3-wiki
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

webapp: Fetch token balance from Drips smart contract #50

Open nya-elimu opened 3 months ago

nya-elimu commented 3 months ago

Instead of simply displaying the current $ELIMU balance of a contributor's Ethereum account, display the collectable balance from @drips-network.

Change the link so that it points to https://www.drips.network/app/<eth_address> instead of https://etherscan.io.


nya-elimu commented 3 months ago

Call the splittable function: https://etherscan.io/address/0xd0dd053392db676d57317cd4fe96fc2ccf42d0b4#readProxyContract#F29

To get the accountId of an Ethereum address, use BigNumber.from(address).