Giter VIP home page Giter VIP logo

bots's People

Contributors

daniel-savu avatar ns212 avatar nud3l avatar theodorebugnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bots's Issues

Swap funds using DEX

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.

Batch liquidation txs for greater profits

Problem

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.

Solution

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.

Periodically try withdrawing qToken balance

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.

Unskip `bridge-tester` tests

Most tests in bridge-tester are skipped, investigate what's wrong and fix or remove them if no longer required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.