Just experienced the @koshmoney Payment Terminal at @web3conf_india!
Bought a Polaroid photo and captured an unforgettable moment.
The experience was incredibly smooth, offering multiple payment options in various networks and currencies.
#PoweredbyCopperx
One simple way to reduce contract size is using library. Consider moving repetitive function to library.
Remember to keep library function as public, as internal functions will be added to contract itself.
Cons: Execution cost will be higher as delegate call will be used.
3/3
π‘ Gas optimization in solidity
Do you know, in solidity bitwise operator is more gas efficient than division operator.
In the below example, number is divided by two in both cases but right shift operation is more gas efficient.