moeda-usd
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

This script was used to update the ETH/USD exchange rate during the Moeda fundraiser. It uses a volume weighted average of prices across Bitfinex, Gemini, GDAX and Kraken.

With the current settings it will update the contract ETH/USD rate about every 2 hours.

Install

yarn

Running

CONTRACT_ADDRESS=foo ACCOUNT_PASSWORD=bar OWNER_ADDRESS=baz yarn start

Where CONTRACT_ADDRESS is the Moeda fundraiser contract, OWNER_ADDRES is the address of the account that deployed the contract and ACCOUNT_PASSWORD is the password of that account.

Running tests

yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i moeda-usd

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • erkmos