Created on 12th August 2018
•
[A] User pain points -
[B] App developer pain points -
Complete discussion is here -
https://eips.ethereum.org/EIPS/eip-1077
Stack too deep issues -
In some of the functions we have 11 input paramters, 3 local variables and 2 mapping access. So any addition of local variable we were running in to this issue. To handle this we introduced a struct and passed its reference to other internal function.
Gas calculation for refund -
This is a tricky problem, we used gasleft() to find the gas used in the function, but there are some operations like transfer for refund gas and other mathematical operations that are performed after the calculations. This contributes to the gas consumption.
Signature verification -
ECRecover returned incorrect address. Debuging in solidity is hard, so we spent most of the time here to identify all the parameters that are causing this issue.
Time -
We ran out of time :)
Technologies used