RigoBlock / contracts

[DEPRECATED] directory of our contracts
Apache License 2.0
1 stars 0 forks source link

Add function to return ETH balance on Drago #4

Open wnz99 opened 6 years ago

wnz99 commented 6 years ago

We need to be able to retrieve the balance of available ETH in a Drago.

This is necessary, for example, to be able to validate forms such the one for depositing ETH to an Exchange.

gabririgo commented 6 years ago

will implement free balance on dragos and vaults, it should be possible even to call it from outside the contract with standard web3 apis

gabririgo commented 6 years ago

web3.eth.getBalance() standard api call on contract retuns the eth balance of an account

gabririgo commented 6 years ago

is this still needed? we did go through some of the ways of querying the balance. If not enough, we should work on that. Leaving this open for a few days, will close if not needed