
Details
The PixelPlex team delivered the Alfprotocol — an efficient, decentralized application for liquidity provision and yield farming. It allows users to borrow funds by offering collateral and supply tokens to pools, thus earning yield and token rewards for being liquidity providers.
Backend developer
3Frontend developer
2UI/UX designer
QA specialist
Project manager
Business analyst
Aware of the flaws of centralized exchanges such as hacks, scams, and market manipulation, the client has been closely watching innovations introduced by the Decentralized Finance (DeFi) market. Among the innovations are automated market makers (AMMs) that facilitate the decentralized exchange of digital assets by using liquidity pools.
But the DeFi community hasn’t stopped there. The second generation of DeFi introduced token incentives for liquidity provision (yield farming), margin trading and leveraged positions.
In the light of all these advances, the startup decided to edge towards the third generation of DeFi and build their own solution that would offer leverage for liquidity providers in AMMs.
That’s how the startup came up with the Alfprotocol.
Having come up with their idea the startup approached PixelPlex as a reliable blockchain development vendor to take care of the solution development.
Together, we worked out the following goals:
Implement the core protocol for leveraged liquidity provision in AMMs
Implement a protocol for lending and overcollateralized borrowing
Provide traders and investors of various risk appetites with a platform that facilitates liquidity flows and maximizes capital efficiency

Our team helped the customer build the Alfprotocol — a Solana-based protocol for liquidity provision and yield farming. The protocol allows users to participate in isolated pools as lenders and borrowers and provides for enhanced leverage and farming rewards with up to a 200x liquidity margin.
The solution comprises several key products, including:
Got an idea? We’re ready to discuss it
Alf Leverage provides a smooth leveraged yield farming experience for users with superior rewards. To implement it, our team integrated Alf Leverage with the Raydium protocol and ensured their interoperability.
When interacting with the protocol, traders can choose from different liquidity pools and enter positions by supplying their assets as collateral. They can increase their position size when investing in liquidity provision. Traders can also remove their position at any time by withdrawing the collateral or closing the entire position.
The mechanism as a whole proceeds as follows:

Our team helped the customer implement Allotment Alf — a protocol for lending and overcollateralized borrowing. The protocol uses single-asset liquidity pools for lenders and overcollateralized debt positions for borrowers.
Allotment Alf allows users to deposit their assets and earn an annual percentage yield on top. Alternatively, users can borrow against their deposited assets or leverage borrowed capital anywhere in Web3.

Our team implemented a Treasury smart contract — a solution for connecting lending and borrowing protocols. The unique feature of the protocol is that it provides for routing liquidity between multiple protocols, thereby allowing Alf Leverage to use funds from Allotment Alf or any other lending protocol.
Treasury is responsible for all financial flows on the platform. It aggregates data about current loan conditions, enables borrowing, tracks position health, and keeps collaterals in its custody.

To ensure the highest leveraged yield farming positions in the Solana ecosystem, we implemented the liquidation bot run by the Allotment Alf team. The task of the bot is to ensure that underwater positions are liquidated, thus protecting lenders from loss.
Also, to mitigate risks for the platform, we’ve implemented partial liquidations. This means that the bot will not liquidate the entire position but only a specific part of it. For example, suppose a trader has a debt of $140 and collateral worth $150. To cover the debt, the bot can partially liquidate this position by selling $130 of the user’s collateral. As a result, the trader will have $10 debt and $20 collateral left.

Have a new project in mind?






Together with the client, we opted for the Solana blockchain as the basis of the project for the following reasons:
Fast transactions and low fees. Solana can handle up to 65,000 tps versus Ethereum’s 13-15 tps.
A large and well-developed ecosystem with multiple projects built on top of the platform.
A lot of institutional attention with more and more developers moving to this blockchain.
The protocol consists of two major components:
We built the Alfprotocol using a modular approach to ensure the solution's scalability. As a result, we can expand the protocol’s functionality and add new modules without having to redeploy existing contracts.
One of the key modules of the platform is the Treasury module, which contains the logic for the borrowing and lending protocols, such as how to spend the borrowed funds. To take Allotment Alf as an example, the protocol will send the borrowed funds to the user’s wallet while Alf Leverage will use them for staking on Raydium.
To track utilization rates, we used Price Oracles — a set of programs that enable the retrieval of price information for a given asset.
up to200x
yield farming and liquidity provision
892K
initial market cap (as of Aug 2022)
months6
time taken to develop the solution
Services
We offer a comprehensive range of services, including IT consulting, custom software development, and specialized expertise in blockchain, machine learning, and data science.
Blockchain Development
Blockchain Development
Smart Contract Development
Web3 Development
Blockchain Game Development
Crypto Payment Solutions
Tokenization Services
Protocols
Protocols
Cryptocurrency Exchange Development
Cryptocurrency Development
Marketplace Development
Dapp Development
DeFi Development
Top Development Company
Blockchain Consulting
Smart Contract Audit
Top Blockchain Consulting Company
Custom Software Development
Custom Software Development
Mobile App Development
Web Development
Top IT Services Company
IT Consulting
Top Consulting Company
ML Development
Artificial Intelligence Development
Machine Learning Development
Data Science Development
Database Development Services
Top BI & Big Data Company
AR & VR Development
AR & VR Development
QA & Software Testing
QA & Software Testing Services
UI/UX DesignGive us the pleasure of adding our secret sauce to your app.
We’ll create beautiful screens at the front while breaking the limits of what’s behind them to help your app get to beyond-plausible business achievements.
UI/UX Design Services
MVP Development
MVP Development Services
Metaverse Consulting & Development
Top Development Company
GTM & RevOpsBuild a clear go-to-market strategy and revenue operations system that helps your team turn more leads into qualified opportunities. We align marketing, sales, automation, and analytics to make revenue growth easier to track, manage, and scale.
GTM RevOps Services
All servicesSolutions
RWA PlatformTokenization makes it easier to trade assets and opens up new investment opportunities and diversifies portfolio.
RWA Platform
Asset tokenization platform development
Arbitrage BotProfit from market inefficiencies with automated, customized trading strategies that boost returns and minimize risk.
Arbitrage Bot
Be a transaction ahead. Catch profit at short notice
CryptoAPIGain an unfair data edge for your dApps. Tap into high-quality blockchain insights to outsmart competitors and fuel smarter decisions.
CryptoAPI
Connect your dApps to blockchain networks in a flash
OTC HawkOffer high-net-worth clients a secure, enterprise-grade trading terminal. Streamline deals, enhance reliability, and optimize top-tier crypto assets.
OTC Hawk
Benefit from our portfolio and wealth management app
DocFlowManage sensitive documents on blockchain. Leverage optional zero-knowledge proofs for trust, privacy, and streamlined workflows.
DocFlow
Intuitive Blockchain-Powered Document Management System
Know-Your-TransactionEnsure every transaction is above board. Monitor digital asset flows for compliance and transparency, supporting both businesses and regulators.
KYT crypto platform
Our KYT platform fosters integrity of financial ecosystems
Technologies
DAML Fift FunC TactIndustries
We work across a variety of industries, from FinTech to eCommerce, leveraging our accumulated knowledge and best practices to deliver solutions tailored to the unique needs of your business.
Finance & Insurance
Solutions for Finance & Insurance
Commerce & Logistics
Solutions for Commerce & Logistics
Health, Fitness & Education
Solutions for Health, Fitness & Education
Real Estate & Industrial
Solutions for Real Estate & Industrial
Hospitality & Entertainment
Solutions for Hospitality & Entertainment
Success stories
Domain
Industry
Protocols
Company
About us Team Careers Social Responsibility ContactsResources
Blockchain Big Data Artificial Intelligence AR/VR Mobile Glossary News View Blog