tokencard / contracts

The Consumer Contract Wallet
GNU General Public License v3.0
94 stars 40 forks source link

get ETH to tokens rate instead of tokens to ETH #142

Open i-stam opened 6 years ago

i-stam commented 6 years ago

COOL! Reverse query and batch https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=TKN,EOS&sign=true

https://github.com/tokencard/contracts/blob/master/contracts/oracle.sol#L332

nostdm commented 6 years ago

I think that means a lot more math/logic to convert them since we need the Ether rate in the convert() function