From 1be19b1a6bcbad9c81af3f67dccaa253d148191a Mon Sep 17 00:00:00 2001 From: De Facto Date: Sun, 21 Feb 2021 09:50:54 +0800 Subject: [PATCH] tweak readme --- SETUP.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SETUP.md b/SETUP.md index 08fbaa7..31be667 100644 --- a/SETUP.md +++ b/SETUP.md @@ -72,13 +72,13 @@ yarn solink setup config/setup.private.json You may need to implement your own price feed to test liquidation. We will support custom feeds in the future... for now edit the code manually. -1. Create an EventEmitter that emits an IPrice: +1. Create an EventEmitter that emits an IPrice https://github.com/czl1378/solana-flux-aggregator/blob/91712880abbb16b3c620995cabcca6e4a8582ad8/src/feeds.ts#L48 2. Wrap the EventEmitter instance as an async iterator -https://github.com/czl1378/solana-flux-aggregator/blob/91712880abbb16b3c620995cabcca6e4a8582ad8/src/PriceFeeder.ts#L38 +https://github.com/czl1378/solana-flux-aggregator/blob/3b9513dd8d3723533a66cd62081be087fb704a60/src/feeds.ts#L58 3. In `PriceFeeder` change `coinbase` to your custom price feed