Skip to content

Commit

Permalink
refactor(chainlink): simplify pushResult fn
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Dec 21, 2022
1 parent 3670679 commit d0ef5e9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/zoe/src/contracts/priceAggregatorChainlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,17 +849,7 @@ const start = async (zcf, privateArgs) => {
keyToRecords.delete(oracleAddr);
}
},
async pushResult({
roundId: roundIdRaw = undefined,
unitPrice: submissionRaw,
}) {
// Sample of NaN, 0, or negative numbers get culled in
// the median calculation.
pushResult({
roundId: roundIdRaw,
unitPrice: submissionRaw,
}).catch(console.error);
},
pushResult,
});

return harden(oracleAdmin);
Expand Down

0 comments on commit d0ef5e9

Please sign in to comment.