Keep rewards worth the same in dollars as the coin moves
Store the reward in USD, convert at claim time, and clamp the movement so a price spike cannot empty the faucet in an afternoon.
5 entries
Store the reward in USD, convert at claim time, and clamp the movement so a price spike cannot empty the faucet in an afternoon.
The guard that turns a dead price feed into a delayed payout instead of a wrong one. Fail closed, log loudly, retry later.
One API returning a wrong number should not decide what you pay. Three sources and a median makes a single bad quote irrelevant.
One request per interval for the whole site, an atomic cache write, and a stale copy served rather than nothing when the feed is down.
If your ledger is in dollars and your payout API is in satoshi, this is the conversion, with the guard that stops a stale price from emptying your wallet.