Content
@
0 reply
0 recast
0 reaction
Michael Amadi
@michaels
Congrats to everyone who submitted for the curta golf contest @atarpara @philogy @crypto-frens.eth 0xjustadev Spent hours working on a constant gas solution for hours only to realize when I was done that there was a codesize gas penalty imposed 🤦🏾♂️ Thought I should still share it though Link in comment
1 reply
1 recast
8 reactions
Michael Amadi
@michaels
- It costs a constant 82 gas per factorial of numbers > 1 and < 58, - Costs a constant 43 gas for numbers 0 and 1, - Costs a constant 55 gas per factorial >= 58 which also reverts because their factorial is > 256 bits Link: https://github.com/AmadiMichael/curta-golfer/blob/main/src/Solutions/Golf2/Factorial.huff
0 reply
0 recast
2 reactions