Awesome list of DSA Connectors
Go to file
Lecky Lao cdb8bf01eb created Mocks and MockSynthetix;
adding constructor for MockSynthetix and passing mock for synthetix address;
2020-07-10 01:08:08 +10:00
contracts created Mocks and MockSynthetix; 2020-07-10 01:08:08 +10:00
migrations created Mocks and MockSynthetix; 2020-07-10 01:08:08 +10:00
test created Mocks and MockSynthetix; 2020-07-10 01:08:08 +10:00
.gitignore
.nvmrc
package-lock.json added studydefi/money-legos for testing; 2020-06-30 23:16:15 +10:00
package.json change connectorID method in stores to virtual view; 2020-07-04 00:43:19 +10:00
README.md
tenderly.yaml
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.

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.