Awesome list of DSA Connectors
Go to file
Thrilok kumar 352f1c8812
Merge pull request #40 from InstaDApp/mapping-updates
Update Compound for new mapping
2021-03-20 00:18:30 +05:30
contracts Merge pull request #40 from InstaDApp/mapping-updates 2021-03-20 00:18:30 +05:30
migrations removed constructor from synthetix connector; 2020-07-12 03:42:59 +10:00
test Merge pull request #19 from InstaDApp/curve-gauge-connector-feature 2020-08-23 03:09:06 +05:30
.gitattributes formating stores.sol; 2020-07-12 02:04:48 +10:00
.gitignore formating stores.sol; 2020-07-12 02:04:48 +10:00
.nvmrc fix formating on connectors/curve.sol; 2020-06-28 23:15:51 +10:00
buidler.config.js formating stores.sol; 2020-07-12 02:04:48 +10:00
package-lock.json Update compound for mapping 2021-03-16 21:56:08 +05:30
package.json added studydefi module 2020-09-14 20:41:53 +10:00
README.md Update README.md 2020-07-19 00:24:35 +10:00
tenderly.yaml initial Curve connector version 2020-05-05 04:54:10 +03:00
truffle-config.js clean up truffle-config and enable optimiser; 2020-07-09 21:33:21 +10:00

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.