Awesome list of DSA Connectors
Go to file
Thrilok Kumar e9d74b2ba1 Fixed bug
2020-07-08 15:41:00 +05:30
contracts Fixed bug 2020-07-08 15:41:00 +05:30
migrations initial Curve connector version 2020-05-05 04:54:10 +03:00
test fix tests 2020-05-05 07:10:51 +03:00
.gitignore First Commit 2020-05-01 21:31:43 +05:30
package-lock.json initial Curve connector version 2020-05-05 04:54:10 +03:00
package.json Added safeErc20 lib 2020-05-18 22:52:14 +05:30
README.md fixed typo 2020-05-04 16:04:19 +10:00
tenderly.yaml initial Curve connector version 2020-05-05 04:54:10 +03:00
truffle-config.js solidity version change 2020-05-27 03:35:19 +05:30

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.

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.