-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: comments added to OptimisticResult
- Loading branch information
0xMikko.eth
committed
Sep 28, 2022
1 parent
be1defc
commit af27256
Showing
4 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
import { MultiCall } from "@gearbox-protocol/sdk"; | ||
|
||
export interface OptimisticResult { | ||
// Credit Manager address | ||
creditManager: string; | ||
|
||
// Borrower address | ||
borrower: string; | ||
|
||
// Gas used for liquidation from tx recepit | ||
gasUsed: number; | ||
|
||
// Multicalls used as parameter in liquidateCreditAccount function | ||
calls: Array<MultiCall>; | ||
|
||
// Estimated amount which was computed in pathfinder | ||
pathAmount: string; | ||
remainingFunds: string; | ||
|
||
// How much tokens liquidator got on its account for the liquidation | ||
// liquidatorPremium = underlyingBalanceAfterLiquidation - underlyingBalanceBeforeLiquidation | ||
liquidatorPremium: string; | ||
|
||
// True if errors accrued | ||
isError: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters