Code Monkey home page Code Monkey logo

compound-liquidator's Introduction

compound-liquidator

How to Use

  • Go to: https://chiragkhatri.me/compound-liquidator/
  • You will see a list of accounts. The ones that have a state "unhealthy" are usually liquidable.
  • Click inspect and you should see a more detailed screen.
  • Note liquidating is disabled if account liquidity > 1 it will say so at the top of the screen
  • You might see a bunch of check marks, this is because for the liquidation to work you must first approve the underlying token (DAI) for example to interact with the cDAI smart contract.
  • Before you can utilize these tokens, to repay or retrieve they must be enabled.
  • Click on the checkmark and approve the transaction. This will only cost gas, nothing else. It will say 'approval' at the top of the transaction (if you're using metamask)
  • Once it's approved the checkmark will turn into a circle which can be selected
  • Once you have selected a asset to repay and an asset to retrieve you can adjust the slider at the bottom to change the amount you're paying back
  • Once you've selected your amount click the repay button
  • A transaction will pop up, for this transaction to succeed you will need that much underlying in the same account as the account you're sending the transaction from.
  • Once the transaction goes through if it's success you will get the amount of cToken sent to your address, you can check your amounts using the compound.finance site.

stretch goals

  • Automate this for all the gains.

compound-liquidator's People

Contributors

ckhatri avatar conlan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.