chi
chi copied to clipboard
Correct "value" in "modifier discountCHI"
I have noticed different value in freeFromUpTo:
- medium -
(gasSpent + 14154) / 41947
modifier discountCHI {
uint256 gasStart = gasleft();
_;
uint256 gasSpent = 21000 + gasStart - gasleft() + 16 * msg.data.length;
chi.freeFromUpTo(msg.sender, (gasSpent + 14154) / 41947);
}
- deployer.eth -
(gasSpent + 14154) / 41130
modifier discountCHI {
uint256 gasStart = gasleft();
_;
uint256 gasSpent = 21000 + gasStart - gasleft() + 16 * msg.data.length;
chi.freeFromUpTo(msg.sender, (gasSpent + 14154) / 41130);
}
Which is the right one?