refactor
Closed this issue · 0 comments
xhliu commented
Put these in a struct
ExchangeRate {
timestamp
price
symbol
}
so we can wrap into a function parseExchangeRate()
boilerplate/src/contracts/priceBet.ts
Lines 66 to 69 in e7131bd
Update doc afterwards https://scrypt.io/docs/tutorials/oracle/#public-method---unlock