From 13bbb95c580b996e9cb053a16cf410d756cbeae7 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Mon, 4 May 2020 07:26:42 +0530 Subject: [PATCH] Updated Readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5fdfcaf..c8b2591 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Connectors are standard modules that let DeFi Smart Account interact with variou - 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. +- While giving ERC20 allowance to contracts, only approve() the limited amount, which needs to be 0 by the end of the spells. - If required, Add two additional parameter, `getId` & `setId` in external public functions. - Use `getUint()` or `setUint()` functions to fetch or store values. - Call `emitEvent()` after every external public functions.