Content
@
0 reply
0 recast
2 reactions
horsefacts
@horsefacts.eth
- Keep all strings under 32 bytes - Replace modifiers with internal functions - Linked libraries ๐ (cc @maks) https://warpcast.com/maks/0xb0fda8ff
7 replies
3 recasts
23 reactions
Matt Solomon
@msolomon.eth
- Dedupe calls and other ABI encoding into helper functions (encoding+checks get bloaty) - Dedupe any other logic into functions - Be smart with calldata/memory/storage keywords, avoid unneeded copies - Avoid structs, encode data manually, especially if structs fit in one word
1 reply
0 recast
4 reactions
Matt Solomon
@msolomon.eth
Good lib for doing that last one by Balancer https://github.com/balancer/balancer-v2-monorepo/blob/master/pkg/solidity-utils/contracts/helpers/WordCodec.sol
0 reply
0 recast
1 reaction