DeFi Basics
What Are Gas Fees in Crypto?
Learn what gas fees are in cryptocurrency, how they work on Ethereum and other blockchains, why gas fees fluctuate, and practical strategies for reducing transaction costs in DeFi.
Learn what rollups are, how optimistic and zero-knowledge rollups work, and why they matter for scaling Ethereum and reducing gas fees in DeFi.
Blockchain networks face a fundamental tension between decentralization, security, and throughput — often called the "blockchain trilemma." As DeFi activity surged on Ethereum, the network's limited transaction capacity drove gas fees to levels that priced out many users. Rollups emerged as the leading solution to this scalability bottleneck, and they now form the backbone of Ethereum's long-term scaling roadmap.
A rollup is a type of Layer 2 scaling solution that moves transaction execution off the main chain while still posting transaction data back to Layer 1. This design lets rollups inherit the security guarantees of the base chain — a critical property that distinguishes them from alternative scaling approaches like sidechains, which maintain their own independent validator sets.
At a high level, every rollup follows the same three-step pattern:
Because the raw transaction data is available on Layer 1, anyone can reconstruct the rollup's state independently. This property — called data availability — is what allows rollups to remain trustless.
Most rollups today operate with a centralized sequencer that orders transactions and produces batches. While this introduces a degree of centralization, the sequencer cannot steal funds or produce invalid state transitions (thanks to the proof systems described below). Many rollup teams are actively working on decentralized sequencer designs to eliminate this single point of dependency.
Optimistic rollups take an "innocent until proven guilty" approach. They assume that every batch of transactions posted to Layer 1 is valid. If a batch contains an invalid state transition, any observer can submit a fraud proof during a predefined challenge window — typically seven days.
When a fraud proof is submitted, the Layer 1 contract re-executes the disputed transaction to determine the correct outcome. If the original batch is found to be invalid, it is reverted and the malicious operator's bond is slashed. This mechanism requires at least one honest verifier to be watching the chain.
The main drawback of optimistic rollups is the withdrawal delay. Because fraud proofs require a challenge window, withdrawing funds back to Layer 1 natively takes around seven days. Third-party liquidity bridges can circumvent this delay, but they introduce additional trust assumptions or fees.
ZK rollups take the opposite approach: they generate a cryptographic validity proof (often a zk-SNARK or zk-STARK) for every batch of transactions. This proof mathematically guarantees that every transaction in the batch was executed correctly. The Layer 1 smart contract verifies the proof on-chain, and if it checks out, the new state is accepted.
The rollup operator runs a prover — a computationally intensive process — that generates a succinct proof attesting to the correctness of all state transitions in a batch. This proof can be verified on-chain in constant time, regardless of how many transactions the batch contains. The key innovation is that verification is orders of magnitude cheaper than re-execution.
ZK rollups offer faster finality (no seven-day wait) and stronger security guarantees, but proof generation is computationally expensive. Achieving full EVM compatibility inside a ZK circuit is also technically challenging, though recent advances have made it increasingly practical.
For DeFi users — particularly those borrowing against Bitcoin or other crypto assets — rollups deliver three concrete benefits:
Borrowing on Layer 1 Ethereum can cost anywhere from $20 to $200+ per transaction during congestion. On a rollup, the same operations often cost pennies. For users managing collateral positions that require multiple transactions (approve, deposit, borrow, repay), the savings compound quickly.
Rollup sequencers typically provide soft confirmations in under two seconds, compared to Ethereum's 12-second block time. This creates a smoother user experience when interacting with lending protocols.
Many DeFi lending protocols — including those aggregated by Borrow — deploy across multiple rollup networks. This means borrowers can compare rates not just across protocols but across chains, finding the optimal combination of interest rate, collateral requirements, and transaction cost.
Sidechains (like Polygon PoS) run their own consensus mechanism, which means their security is independent of the Layer 1 chain. Rollups post data back to Layer 1 and inherit its security, making them fundamentally more secure for high-value DeFi operations.
State channels (like the Lightning Network on Bitcoin) allow two parties to transact off-chain and only settle the final state on-chain. They are highly efficient for repeated bilateral interactions but do not support the complex smart contract logic that DeFi protocols require.
Validiums are similar to ZK rollups but store data off-chain rather than on Layer 1. This further reduces costs but weakens the data availability guarantee, introducing a trust assumption about the off-chain data storage committee.
Ethereum's Dencun upgrade introduced "blob" transactions, which provide a cheaper way for rollups to post data to Layer 1. This has already reduced rollup fees by 10-100x and represents the first step toward full danksharding, which will further expand data capacity.
A newer concept where the Layer 1 validators themselves serve as the sequencer for the rollup. This eliminates the centralized sequencer concern and inherits Ethereum's full liveness and censorship resistance guarantees.
As more protocols deploy across multiple rollups, seamless cross-rollup asset transfers become critical. Shared sequencing, interoperability protocols, and intent-based bridging are active areas of research and development.
The expansion of DeFi lending onto rollup networks has direct implications for Bitcoin holders looking to access liquidity without selling. Wrapped Bitcoin (wBTC, cbBTC, BTCB) and native Bitcoin bridging solutions make it possible to use Bitcoin as collateral on rollup-based lending protocols.
Platforms like Borrow aggregate these opportunities, letting users compare borrowing rates across Layer 2 networks and Layer 1 protocols from a single interface. The result is a more efficient market where borrowers can access the best terms regardless of which chain a protocol operates on.
Understanding rollups is essential for any serious DeFi participant. As the technology matures and adoption grows, the ability to navigate multiple rollup ecosystems — and compare opportunities across them — will be a significant advantage. Tools like Borrow simplify this by aggregating rates and protocols across chains, so you can focus on finding the best terms for your Bitcoin-backed loans.
Common Questions
A rollup is a Layer 2 scaling solution that executes transactions off the main blockchain (off-chain), then posts compressed transaction data back to Layer 1 for finality. This allows rollups to inherit the security of the base chain while dramatically increasing throughput and reducing per-transaction costs.
Related Questions
DeFi Basics
Learn what gas fees are in cryptocurrency, how they work on Ethereum and other blockchains, why gas fees fluctuate, and practical strategies for reducing transaction costs in DeFi.
DeFi Basics
Learn what smart contracts are, how they work on blockchain networks, and why they are the foundation of DeFi applications like lending protocols and decentralized exchanges.
Borrow by Sats Terminal
Learn about every blockchain supported by Borrow by Sats Terminal -- Ethereum, BASE, Arbitrum, Polygon, Optimism, and BSC -- and how multi-chain support helps you find the best lending rates.