Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 2.68 KB

Whitepaper.md

File metadata and controls

59 lines (38 loc) · 2.68 KB

title_white

LayerCakeSwap

LayerCakeSwap is a DEX protocol which consumes 7 times less gas1 in comparison with UniSwap, based on L2 network. It solves following problems:

  • High gas rates make DeFi expensive for users 
~$12-18 USD per swap (@ 1,000 USD/Eth)
  • DeFi users prefer and trust Ethereum and aren’t willing to migrate to side chains solutions (like Binance Smart Chain, POA, etc.) for gas efficiency

Users interact with LayerCakeSwap smart contract on Ethereum using familiar interface, no additional setup required. Even more, LayerCakeSwap contract API is accessible for other smart contract on Ethereum.

Smart contract emits events to manage operations on L2 network based on Polkadot (Substrate). Gas efficiency comes from executing calculations & data storage on L2 network.

advanages

Gas consumption comparison

Operation UniSwap LayerCakeSwap
Deposit Eth - 22,656
Deposit token - 48,628
Swap token to Eth2 165,969 22,656
AddToLiquidity pool in research 22,656
Withdraw from liquidity pool in research 22,656
Withdraw ETH - no data yet
Withdraw token - no data yet

1 - for swap operation. UniSwap gas consumption was measured for ETH/DAI pair.
2 - gas for UniSwap was measured for ETH/DAI Swap

How it works

how_it_works

  1. User interacts with smart contract on Ethereum network as usual
  2. Contract processes method and emits an event
  3. LCSwap listens to events and execute orders on L2

Supported operations:

Deposit assets (Ethereum / Token)

deposit_process

Orders (Swap, Liquidity pool management)

order_process

Withdraw process

withdraw_process

Legend

legend