Coder Social home page Coder Social logo

dhedge-gnosis-safe-app's Introduction

dHEDGE App For Gnosis Safe

At current version it allows to invest and withdraw from pools. It is deployed here, so you can use it even before it gets merged into Gnosis:

https://gnosis-safe.io/app/#/safes/${your-wallet-address}/apps?appUrl=https://dhedge-gnosis-app.web.app/

First select a pool you want to interact with:

Screenshot 2020-12-03 at 2 48 56 pm

Then select the amount of sUSD to invest (or amount of pool tokens to return and withdraw):

Screenshot 2020-12-03 at 2 50 30 pm

You will notice two transactions for investing (sUSD approve and deposit calls) and one for withdrawing:

Screenshot 2020-12-03 at 2 50 39 pm

And finally, it should appear in the transaction screen waiting for confirmations/execution:

Screenshot 2020-12-03 at 2 52 28 pm

Getting Started

Install dependencies and start a local dev server.

yarn install
cp .env.sample .env
yarn start

Then:

  • If HTTPS is used (by default enabled)
  • Go to Safe Multisig web interface
  • Create your test safe
  • Go to Apps -> Manage Apps -> Add Custom App
  • Paste your localhost URL, default is https://localhost:3000/
  • You should see Safe App Starter as a new app
  • Develop your app from there

Features

Gnosis Safe App Starter combines recommendations described in the following repositories:

You can use the useSafe React hook to interact with the Safe Apps SDK

const safe = useSafe();
console.log(safe.info);

Safe React Components are also integrated and ready to use. See all components.

Dependencies

Included

Recommended

dhedge-gnosis-safe-app's People

Contributors

edsonayllon avatar radek1st avatar itsermin 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.