interlay / bots Goto Github PK
View Code? Open in Web Editor NEWTypeScript bots for the Kintsugi and Interlay networks
TypeScript bots for the Kintsugi and Interlay networks
Bot admins can pick the base currency the bot should keep its funds in at all times (for example, USDC
), and a tolerance limit for the DEX slippage. Before sending a liquidation extrinsic, the bot should ensure that the slippage incurred by the trade to swap received collateral for the base currency is not greater than the profit from the liquidation.
Add an option for bot runners to tip block authors to speed up the inclusion of their liquidation tx
In case a borrower is very badly undercollateralized, several liquidations may be required to clear bad debt, because the close factor parameter restricts how big a single liquidation can be. This means that the bot may lose out on some of the liquidation premium if other liquidators get their tx included too.
Batch several as many liquidation extrinsics together as required to fully clear bad debt, possibly also including DEX transaction in the batch to ensure the conversion doesn't incur more slippage than expected.
The liquidation reward is received in qTokens, which cannot be used to perform further liquidations.
After a successful liquidation, the bot attempts to redeem the received qTokens, though this may fail if liquidity is insufficient. The bot should periodically retry redeeming its qTokens balance.
Most tests in bridge-tester
are skipped, investigate what's wrong and fix or remove them if no longer required.
Based on interlay/interbtc-api#567 and assuming the bot account is prefunded with funds in all lending market currencies, send liquidation extrinsics whenever a borrower becomes undercollateralized.
To replace console.log
s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.