flashloan-profit-calculator
Version:
A library for analyzing flashloan transactions and calculating profits
18 lines (17 loc) • 612 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./index");
// Run calculation with example data
async function runExample() {
try {
// Example using transaction hash
const txHash = "0x4eaa9a30fabe363c883a557765f1512747011304db589dcc686156b42b613d5e";
const results = await (0, index_1.calculateProfitFromTxHash)(txHash);
await (0, index_1.displayProfitResults)(results);
}
catch (error) {
console.error("Error calculating profit:", error);
}
}
// Execute the example
runExample().catch(console.error);