GithubHelp home page GithubHelp logo

giovannidisiena / dsa-connectors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from instadapp/dsa-connectors-old

0.0 0.0 0.0 719 KB

Awesome list of DSA Connectors

Home Page: https://docs.instadapp.io/connectors

JavaScript 15.03% Solidity 84.97%

dsa-connectors's Introduction

DSA Connectors

Connectors are standard modules that let DeFi Smart Account interact with various smart contracts, and make the important actions accessible like cross protocol interoperability.

Add Custom Connectors

  1. Fork and clone it
  2. Create a feature branch: git checkout -b new-connector
  3. Add the connector solidity file to contracts/connectors
  4. Commit changes: git commit -am 'Added a connector'
  5. Push to the remote branch: git push origin new-connector
  6. Create a new Pull Request.

Requirements

Be sure to comply with the requirements while building connectors for better compatibility.

  • Import common files from contracts/common directory.
  • The contracts should not have selfdestruct().
  • The contracts should not have delegatecall().
  • Use uint(-1) for maximum amount everywhere.
  • Use getEthAddr() to denote Ethereum (non-ERC20).
  • Use address(this) instead of msg.sender for fetching balance on-chain, etc.
  • Only approve() limited amount while giving ERC20 allowance, which strictly needs to be 0 by the end of the spell.
  • Use getId() for getting value that saved from previous spell.
  • Use setId() for setting value to save for the future spell.

Support

If you can't find something you're looking for or have any questions, ask them at our developers community on Telegram, Discord or simply send an Email.

dsa-connectors's People

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.