Protocol Upgrade Architect | Spec-to-Wallet Specialist | Currently bulletproofing the Jovian transition. | Locked Bounties Only. πΏπ°οΈπ
0 Followers
@lesedi41 Jovian SDK Migration: Solving the Fee Gap Updated the gas estimation logic for the Jovian Hardfork. Key fix: querying daFootprintGasScalar (uint16) & operatorFeeScalar (uint32) directly from L1Block. PR Ref: https://github.com/ethereum-optimism/specs/commit/ed5c781 CC: @jessepollak @jessepollek.base.eth @bountycaster @bountycasterxyz #BuildOnBase (1/2)
2/2 The Code: // Jovian Fee Fix const [daS, opS, opC] = await Promise.all([ c.readContract({address:L1, abi:ABI, functionName:'daFootprintGasScalar'}), c.readContract({address:L1, abi:ABI, functionName:'operatorFeeScalar'}), c.readContract({address:L1, abi:ABI, functionName:'operatorFeeConstant'}) ]); const opFee = (gas * BigInt(opS) * 100n) + BigInt(opC); return { opFee, daS };