Blaize
Contact us
  • Home
  • Services
    • Back
    • Blockchain ecosystems
    • Decentralized application
    • Smart contracts
    • Developer tools
    • Enterprise solutions
    • Blockchain integration
    • NFT Development Services
    • GameFi Development
    • Token Development Services
  • Blaize.Security
  • Solutions
    • Back
    • Blockchain Consulting Services
    • For enterprises
  • Team
  • Cases
  • Blog
  • Careers
  • fb
  • LinkedIn
  • Twitter
info@blaize.tech +38 095 53 72 031

Kyiv, Ukraine

26 Metalistiv St

Dnipro, Ukraine 20

Sichovykh Striltsiv St

MONEY MARKET PROTOCOL DEVELOPMENT FOR OMOMO

9 months

Share:

Share on FacebookShare on TwitterShare on TelegramShare on WhatsApp

OMOMO is a money market protocol with native financial tools. It allows users to efficiently lend, borrow, trade with leverage, and utilize derivatives on NEAR.

The project provides users with plenty of benefits, covering most of their financial needs. For instance, it enables various yield farming strategies and eliminates fees on the DEX, which is one of the main pain points for most crypto holders.

OMOMO backstory

Last year, we decided to expand the Rust expertise of the Blaize team and began researching the NEAR ecosystem and technology. Previously, we had only worked on Rust projects from the Solana ecosystem. 

As a part of the research, we visited NEARcon 2021 and got inspired by the atmosphere and friendly community. This was the point of no return for the team – we knew that we would love to work with the NEAR ecosystem.

Shortly after that, in December 2021, we were happy to present the idea of a lending/borrowing protocol during the Nearhack Hackathon in Kyiv. And our passion definitely shone through since we won a grant prize.

By the summer of 2022, we finalized the core functionality of the money market protocol development project, conducted a couple of internal smart contract audits, and created the OMOMO brand.

WHAT WAS THE TASK?

Create a permissionless borrow/lending protocol where all operations are executed on-chain and managed by smart contracts. Provide true decentralization where users own a full leveraged position, using borrowing liquidity. Get rid of fees on the DEX and any slippage while swapping. And on top of that, provide fully DAO-governed asset tiers and protocol parameters.

PROJECT OVERVIEW

The OMOMO architecture is built in an agile and extendable way. Right now, we have two major features that cover the majority of DeFi needs for the NEAR ecosystem.

OMOMO tokenomics
OMOMO tokenomics

The tokenomics of the project is rather straightforward, as the dApp allows you to complete the following actions: 

  • supply valuable assets, earn dTokens and incentives on your deposit; 
  • use the supplied assets as collateral, still earn dTokens and incentives on your deposit, but also borrow the assets of your choice to participate in the market.

The architecture of the lending/borrowing part is explained below.

OMOMO Contracts scheme
OMOMO Contracts scheme

There are a few parties involved in OMOMO architecture and functionality. The protocol has separate Markets contracts that wrap specific Assets and a Controller that is DAO governed and handles all cross-market interactions. 

Markets are responsible for accepting supplies, providing borrows, and calculating the underlying model of supply and borrow interests. Meanwhile, the Controller coordinates all operations like user flow, protocol configuration, managing markets, etc.

Another essential feature is Leveraged trading, which is built on top of the lending/borrow protocol and utilizes Ref.finance as an AMM.

Leverage trading position scheme
Leverage trading position scheme

OMOMO Leverage enables up to 3x leverage on long and short positions by borrowing assets from native borrow/lending protocol. 

Let us see an example.

For instance, Alice deposits 1,000 USDC and opens a position with 2.5x Leverage. OMOMO borrows 1,500 USDC from the lending pool and swaps them for WNEAR on Ref.finance. After Alice closes the position, OMOMO Leverage swaps WNEAR back, repays the debt, and sends the rest to Alice, allowing her to make profits from the larger amount that Alice has.

THE DEVELOPMENT PROCESS

We had a powerful React/Rust team along with an experienced build on NEAR products. The whole work was divided into these milestones:

  • Milestone 1: Lending borrow protocol 2022 Q1-Q2
    • Developing tokenomics of multi-collateral lending-borrow
    • Developing a standalone-market architecture
    • Implementing basic user flows supply\borrow\repay\withdraw
    • Implementing price feed and price oracle
    • Implementing liquidation and liquidation bot
  • Milestone 2: Rewards campaign 2022 Q2-Q3
    • Developing tokenomics of rewards and incentives
    • Implementing rewards campaigns with rewards in multiple tokens
    • Implementing liquidation incentivization
  • Milestone 3: Leveraged trading 2022 Q3-Q4
    • NearCon 2022 Margin trading
    • Metabuild III 2022 Limit orders over Ref.finance concentrated liquidity

In the near future, we have the fourth milestone planned – Public Release 2023 Q1-Q2.

NEED TO DEPLOY YOUR OWN SMART CONTRACT PLATFORM? GET TO KNOW MORE ABOUT OUR SMART CONTRACTS DEVELOPMENT SERVICES. 

CHALLENGES WE CONFRONTED

  • Due to the distributed nature of cross-contract calls in the NEAR ecosystems, managing cross-contract calls and state updates was a complex task and a challenge for our team.
  • Another challenge was to integrate an AMM DEX (Ref) and our borrow/lending (OMOMO) protocol flows so that both of them work flawlessly in union.

RESULT

Since the moment we came up with the idea of OMOMO, the team has gone a long way. At the moment, we have a user-friendly MVP that is not just a regular lending/borrowing protocol anymore but an entire hub for DeFi users in the NEAR ecosystem.

We are proud to say that OMOMO is:

  • truly decentralized – all transactions are executed on-chain;
  • using deep liquidity of borrowing pools for leveraged trading;
  • empowering trading volume on Ref.finance. 

There is much more to come for OMOMO, so make sure to stick around and stay on top of the news.

Service

  • Blockchain based platforms
  • Smart contracts
  • Token emission and distribution

Blockchain

  • NEAR

Project stage

Finished product

Technologies

  • Rust
  • Near-sdk
  • Typescript
  • Workspace-rs
  • Express.js
  • MongoDB
  • AWS Elasticache
  • AWS Lambda
  • React + Redux
  • Near-api-js
  • Big.js
  • AWS Amplify

Other cases

NFT GAME DEVELOPMENT – FANTASY FOOTBALL LEAGUE

Service

  • Blockchain based platforms
  • Crypto games
  • Smart contracts

Blockchain

  • Polygon
5 months
FANTASY BASKETBALL APP DEVELOPMENT: NOMO FANTASY BASKETBALL LEAGUE CASE STUDY

Service

  • Blockchain based platforms
  • Crypto games
  • GameFi
  • Smart contracts
  • Staking platforms
  • Token emission and distribution

Blockchain

  • Polygon
3 months
SMART CONTRACT SECURITY AUDIT FOR AURORA

Service

  • Security audits

Blockchain

  • Aurora
1 month
SMART CONTRACT SECURITY AUDIT FOR 1INCH

Service

  • Security audits

Blockchain

  • Ethereum
2 weeks
DEFI ASSET MANAGEMENT PLATFORM DEVELOPMENT FOR DEHIVE

Service

  • Blockchain based platforms
  • DeFi applications
  • Token emission and distribution

Blockchain

  • BNB Chain
  • Ethereum
  • Gnosis chain
  • Polygon
8 months
SMART CONTRACT SECURITY AUDIT FOR CRYPTOBEAR WATCH CLUB

Service

  • Security audits

Blockchain

  • Ethereum
1 week
SMART CONTRACT SECURITY AUDIT FOR CRYPTO COLLECTIVE

Service

  • Security audits

Blockchain

  • Ethereum
1 day
SMART CONTRACT SECURITY AUDIT FOR NEMUS

Service

  • Security audits

Blockchain

  • Ethereum
2 weeks
Blaize

Address

Kyiv, Ukraine26 Metalistiv St

Dnipro, Ukraine20 Sichovykh Striltsiv St

Contactкее

Tel.: +34 624 45 15 40 E-mail: info@blaize.tech

Follow

  • Facebook
  • Twitter
  • LinkedIn
  • twitter
  • facebook
  • linkedin

Subscribe news

    top blockchain developers
    GoodFirms Badge

    Copyright © Blaize - blockchain development company 2018-2023

    B2B inbound marketing with