osmosis-labs / orderbook

Cosmwasm Orderbook Repo for Osmosis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This repo contains the core contract for Osmosis's orderbook. It implements a novel orderbook mechanism that achieves constant time complexity on limit placements while maintaining log-time complexity for cancellations. Swaps are constant time for each tick, protecting the mechanism against many common spam vectors that naive queue-based orderbooks are vulnerable to.

About

Cosmwasm Orderbook Repo for Osmosis

License:Apache License 2.0


Languages

Language:Rust 99.6%Language:JavaScript 0.3%Language:TypeScript 0.0%