Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-silver committed Jun 29, 2023
1 parent 3592c6a commit 6c87ad9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scenario/constraints/ReservesConstraint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ export class ReservesConstraint<T extends CometContext, R extends Requirements>
async solve(requirements: R, initialContext: T) {
const reservesRequirement = requirements.reserves;
if (reservesRequirement !== undefined) {

const comet = await initialContext.getComet();

const solutions: Solution<T>[] = [];
solutions.push(async function barelyMeet(context: T) {
const comet = await context.getComet();
const baseToken = await comet.baseToken();
const currentReserves = (await comet.getReserves()).toBigInt();
const amount = parseAmount(reservesRequirement);
Expand Down

0 comments on commit 6c87ad9

Please sign in to comment.