Page cover image

Gas Optimization

We ensure every penny you spend is worth it!

DexBladeswapU** swap (V3)P** swapi** swapk** swap

ETH->USDC swap

104069

127543
184329
197983
246445

Swap with 1 hop (ex. ETH->USDC-> USDT )

144093

235295
258926
579632
396242

Add ETH-USDC LP

148185

401924
511149
614200
459928

Even though L2 gas fees aren't as high as on the ETH mainnet, they can still be quite expensive.

Just as vectorized.eth achieved gas optimization in ERC721a, BladeSwap's core contract is dedicated to optimizing gas at every stage.

Through an internal accounting method, it conducts only net transfers instead of token transfers for each pair in multi-hop swap paths.

It also minimizes storage slot usage through byte packing and utilizes assembly code where necessary, creating a highly efficient codebase with the best efforts.

Last updated