πŸ—Ί
Start Here
Rubicon guides and documentation

Welcome
πŸ‘‹
​

New to Rubicon? Visit our Frequently Asked Questions:

Traders:

Use the Rubicon protocol to trade ERC-20 tokens with Limit and Market Orders. Visit the guides for the Swap and Trade interfaces on the Rubicon App:
For support, join the Rubicon Discord server and send a message in the #support channel.

Developers:

The best way to understand the Rubicon protocol is to read the code on GitHub!
Documentation for the order book contract:
Documentation for the liquidity pool contract(s):
APIs for querying market and liquidity pool data:
List of smart contract addresses and protocol deployments:
Security audit reports:

What is Rubicon?

Rubicon is an order book protocol for Ethereum, built on layer 2 (L2) networks. Token swaps, order books, and liquidity pools are available on the Rubicon App
β¬…
​
Rubicon is built on Optimism, a low-cost and lightning-fast Ethereum L2 chain.

Protocol Overview

The cornerstone of the protocol is the RubiconMarket contract, which implements order books for the peer-to-peer trading of ERC-20 tokens.
Rubicon Pools are the native liquidity pools of the Rubicon order books. It is a system of smart contracts that enables passive liquidity providers (LPs) to deposit tokens in a pool, where active market makers (strategists) use the pool assets on the order books. Yield from market-making goes to LPs, and strategists earn a performance fee.
Rubicon v1 Architecture

Developers: Start Rubicon Protocol Locally

$ git clone https://www.github.com/RubiconDeFi/rubicon_protocol.git
$ cd rubicon_protocol && npm i
$ npm i --save-dev [email protected]
$ truffle init
$ 'n' for overwriting contracts
$ 'n' for overwriting migrations
$ (in separate terminal) ganache-cli
Also make sure that you comment out the lines in truffle-config.js that say 'development: ' and include localhost under networks so that you can connect to Ganache.
$ truffle migrate -- deploys contracts to development network, i.e. localhost
$ truffle test -- run the set of tests provided in the test folder of repo
​
Last modified 5d ago
Copy link
On this page
Welcome
Traders:
Developers:
What is Rubicon?
Protocol Overview
Developers: Start Rubicon Protocol Locally