mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
24 lines
1.2 KiB
Markdown
24 lines
1.2 KiB
Markdown
# DeFi Smart Account Connectors
|
|
|
|
Connectors are standardized modules that let Smart Account interact with various smart contracts, and make the important actions accessible to smart accounts.
|
|
|
|
## Add Custom Connectors
|
|
|
|
1. Fork and clone it
|
|
2. Create a feature branch: `git checkout -b new-connector`
|
|
3. Commit changes: `git commit -am 'Added a connector'`
|
|
4. Push to the remote branch: `git push origin new-connector`
|
|
5. Create a new [Pull Request](https://github.com/InstaDApp/dsa-connectors/pull/new/master)
|
|
|
|
## Requirements
|
|
|
|
- The contracts should not have `selfdestruct()`.
|
|
- The contracts should not have `delegatecall()`.
|
|
- Use `uint(-1)` for maximum amount everywhere ([example](/)).
|
|
- Import `contracts/common` files ([example](/)).
|
|
- Add `getId` & `setId`, two additional parameter for external public facing functions ([example](/)).
|
|
- Use `getUint()` or `setUint()` functions to fetch or store values ([example](/)).
|
|
|
|
## Support
|
|
|
|
If you can't find something you're looking for or have any questions, ask them at our developers community on [Telegram](https://t.me/instadevelopers), [Discord](https://discord.gg/83vvrnY) or simply send an [Email](mailto:info@instadapp.io). |