App-Layer CosmWasm Sources

CosmWasm Sources
Maintainer Team Name
RUJIRA
rujira-bow (pools)
The automated market-maker for the Rujira Network
Levana
levana-perpswap-cosmos-factory
The factory contract maintains a single perpetual swaps instance. Each factory is responsible for 0 or more markets, and provides configuration and administrative capabilities.
Levana
levana-perpswap-cosmos-market
This is the primary contract for Levana Perps, providing all services around configuration, PnL calculations, trading, liquidity providing, and more.
RUJIRA
rujira-mint
A simple contract enabling one-shot token minting on instantiation. Used for $RUJI TGE
RUJIRA
rujira-revenue
Simple smart-contract to collect reward tokens and convert them into a smaller number of assets to be distributed to $RUJI and $RUNE stakers. One contract instance is deployed per revenue token.
RUJIRA
rujira-staking
Generic staking contract for revenue distribution with inbuilt liquid staking.
Levana
levana-perpswap-cosmos-position-token
Levana Perps treats each new position as its own, unique entity. This contract provides a proxy interface with a CW721-compatible (NFT) interface, to trade positions between users.
RUJIRA
rujira-merge
Merge contract for $RUJI, the fee-switch token of The Rujira Alliance. Merge tokens are exchanged for $RUJI, with a linear decay, and $RUJI re-allocation mechansism. A user can either Deposit merge tokens, or Withdraw $RUJI tokens from the contract.
Levana
levana-perpswap-cosmos-countertrade
This contract performs a basic countertrade trading strategy. It allows permissionless deposit of funds to be used for opening unpopular positions on markets. Unpopular positions will receive funding payments. This is a risky, non-delta-neutral strategy, as it still exposes users to price exposure.
NAMI
nami-index-nav
nami-index-nav is a CosmWasm contract implementing a net asset value (NAV)-based index strategy. Each receipt token represents a proportional claim on the total value of the fund. Deposits and withdrawals are made in quote_denom (e.g., USDC), and the fund's NAV is determined using external price feeds. Rebalancing is permissionless and triggered via the Run entry point.
Levana
levana-perpswap-cosmos-liquidity-token
Levana Perps markets allow liquidity providers to deposit funds in exchange for liquidity pool tokens. These tokens are tracked and maintained within the market contract. This contract acts as a proxy for the market, and provides a CW20-compatible interface for trading LP positions as fungible tokens.
Levana
levana-perpswap-cosmos-copy-trading
This contract provides copy trading capabilities for Levana Perps. Leaders are able to open and close positions using funds deposited into their management.
RUJIRA
CW3 Flexible Multisig
CW3 Flexible Multisig - This builds on cw3-fixed-multisig with a more powerful implementation of the cw3 spec. It is a multisig contract that is backed by a cw4 (group) contract, which independently maintains the voter set.
RUJIRA
CW4 Group
This is a basic implementation of the cw4 spec. It fulfills all elements of the spec, including the raw query lookups, and it designed to be used as a backing storage for cw3 compliant contracts. It stores a set of members along with an admin, and allows the admin to update the state. Raw queries (intended for cross-contract queries) can check a given member address and the total weight. Smart queries (designed for client API) can do the same, and also query the admin address as well as paginate over all members.
NAMI
nami-index-fixed
nami-index-fixed is a CosmWasm contract implementing a fixed-unit index strategy. Each receipt token represents a deterministic basket of tokens. The contract supports exact-ratio deposits, proportional withdrawals, and a reallocation entry point protected by sudo. Reallocation is assumed to be a two-leg token swap. For example, swapping Token A to Token B is done via Token A -> base_token -> Token B.
NAMI
nami-index-entry-adapter
nami-index-entry-adapter is a CosmWasm contract that serves as an adapter for interacting with nami-index-fixed contract, facilitating deposits and withdrawals with token swaps. It supports multi-step operations, including swapping input tokens to a quote denomination, depositing into an index, and handling residual funds. The contract uses a callback mechanism (ExecuteMsg::Then) to chain operations and manage swap contracts via sudo messages.
NAMI
nami-affiliate
nami-affiliate is a CosmWasm contract designed to facilitate affiliate fee distribution for transactions. It supports executing messages to a target contract while optionally deducting affiliate fees from the input funds. The contract ensures fees are calculated based on a basis points (bps) system and sent to an affiliate address, with the remaining funds forwarded to the target contract. It also includes a callback mechanism to return residual balances to the sender.
RUJIRA
rujira-fin (trade)
The orderbook for the Rujira Network. 100% on-chain, crankless, with guaranteed and fair order execution, and operating with O(1) complexity.

app-layer lego