Skip to content

Commit

Permalink
Updated comments for escrow unlock price
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCipherCoder committed Sep 22, 2024
1 parent c8ec74a commit ca75d61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/courses/connecting-to-offchain-data/oracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ describe("burry-escrow", () => {
if (solPrice === null) {
throw new Error("Aggregator holds no value");
}
// Although `SOL_USD_SWITCHBOARD_FEED` is not changing we are changing the unlockPrice in test as given below to simulate the escrow behaviour
const unlockPrice = solPrice.minus(PRICE_OFFSET).toNumber();

await createAndVerifyEscrow(unlockPrice);
Expand Down Expand Up @@ -1333,6 +1334,7 @@ describe("burry-escrow", () => {
if (solPrice === null) {
throw new Error("Aggregator holds no value");
}
// Although `SOL_USD_SWITCHBOARD_FEED` is not changing we are changing the unlockPrice in test as given below to simulate the escrow behaviour
const unlockPrice = solPrice.plus(PRICE_OFFSET).toNumber();
await createAndVerifyEscrow(unlockPrice);
});
Expand Down

0 comments on commit ca75d61

Please sign in to comment.