Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx ts-node ./liquidations/test.ts ./liquidations/<protocol-name>/index.ts #919

Open
atimark opened this issue Jan 8, 2025 · 0 comments

Comments

@atimark
Copy link

atimark commented Jan 8, 2025

interface LiquidationAdapter {
// chain name
[chain: string]: {
liquidations: () => Promise<Liq[]>;
};
}

interface Liq {
owner: string; // owner of this liquidatable position
liqPrice: number; // liquidation price in USD
collateral: string; // collateral asset address with prefix, eg ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
collateralAmount: string; // native, non-decimal adjusted token amount, eg 1 ETH will be "1000000000000000000"
extra?: {
displayName?: string; // name of owner to be displayed on positions inspector
url: string; // link to "spy" inspector provided by the protocol, or blockchain explorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant