{"repo":"hop-protocol/contracts","free":true,"listed":false,"github":"https://github.com/hop-protocol/contracts","clone":"git clone https://github.com/hop-protocol/contracts.git","description":"🐰 Hop Protocol v1 smart contracts","language":"TypeScript","stars":232,"topics":["ethereum","smart-contracts","cryptocurrency","solidity","layer2","hop","hop-protocol","bridge"],"license":null,"category":"blockchain-web3","readme_excerpt":"contracts The smart contracts that power the Hop Exchange. Protocol Design For a detailed description of the protocol, please see the whitepaper. Overview The Hop protocol provides a scalable rollup-to-rollup General Token Bridge using a two-pronged approach: 1. Create a cross-network bridge token that can be quickly and economically moved from rollup to rollup or claimed on layer-1 for its underlying asset. 2. Use Automated Market Makers to swap between each bridge token and its corresponding Canonical Tokens on each rollup in order to dynamically price liquidity and incentivize the rebalancing of liquidity across the network. The combined approach allows users to quickly and trustlessly swap between layer-2 Canonical Tokens using the specialized bridge token as an intermediary asset. A bonder posts their funds as collateral for the system, which effectively fronts liquidity for users to easily transfer throughout each layer. All transferred funds are tracked and the system will always have funds that account for all assets within the Hop ecosystem. Transfers are fully settled and bonders credits restored when the sending layer-2 checkpoints their state onto layer-1. Transfers can be challenged by anyone. Challenges require a challenger to put up stake and wait until the challenged transfer is fully settled. If the challenge is won, the challenger is paid out their initial stake plus some. If it is lost, the challenge stake gets credited to the system. Contracts Bridges Acco","default_branch":null,"files":null,"tree":[],"storefront":"/r/hop-protocol","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hop-protocol/contracts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}