flashloan-profit-calculator
Version:
A library for analyzing flashloan transactions and calculating profits
18 lines (17 loc) • 384 B
TypeScript
export interface TokenBalanceChange {
[token: string]: {
[address: string]: {
amount: bigint;
type: "Revenue" | "Cost" | "TokenTransfer";
};
};
}
export interface AddressParticipationData {
toCount: number;
fromCount: number;
participation: number;
}
export interface ProfitResult {
token: string;
profit: bigint;
}