kkrt-labs / kakarot

Kakarot is a zkEVM written in Cairo, leveraging the STARK proof system.
https://kakarot.org
MIT License
984 stars 299 forks source link

feat: add dynamic pricing to the execution of cairo calls #1564

Open enitrat opened 4 hours ago

enitrat commented 4 hours ago

Currently, calling a cairo contract has a fixed 10k gas price. Considering that this can become a big portion of kakarot's usage (evm wallets + starknet dapps), we should also introduce a dynamic gas pricing that depends on the size of the calldata; because this calldata will need to be packed in 31-bytes felts.

ooochoche commented 3 hours ago

@enitrat I would love to work on this