Current versions of Djed available on Cardano are stable but sensitive to oracle delays and manipulations. This requires high minting and redemption fees for drainage protection, hindering adoption.
This is the total amount allocated to [ DjedAlliance - StableOrder ] Djed Shu Stablecoin Implementation.
Tanya Srinivas is a software developer from BMS College of Engineering, Bangalore, India. She is ranked among the top 20 contributors out of 200 in an event organized by OnchainSquad and was selected to be a participant in the highly competitive Google Summer of Code program. Information Science student at BMS College of Engineering, Bangalore, India. She has been contributing to open-source Web3 projects of organizations such as PSE, AOSSIE, the Djed Alliance and The Stable Order. She is passionate about solving complex problems and finding innovative solutions.
Anshdeep Singh is a software developer from NIT Jalandhar, Punjab, India. He has extensive experience in the field of Web3 development and is skilled in technologies like Solidity, Hardhat, Ethers.js and React which are main technologies. He has been an active participant in the AOSSIE and Djed Alliance communities, contributing to open-source projects such as Agora (on-chain voting) and Milkomeda Djed Osiris's web dashboard. He possesses a strong passion for technology and a drive to learn, innovate and bring fresh perspectives to projects to which he contributes.
Roshan Raj Singh is a software developer with a B.Tech in Electronics and Communication Engineering from the Indian Institute of Information Technology in Chennai, Tamil Nadu. His interests and expertise span blockchain technology, deep learning, and mobile app development. Among his most notable achievements in competitive events, he was the Winner of Unfold 2023 for outstanding integration of Push Notification’s Channel Setting API and securing a 97th percentile in JEE Main 2021, with notable scores in Maths (99.57%) and Physics (99.10%). At Kuvaka Tech, he worked on building a full stack blockchain model for the Government of Qatar and developed a Hyperledger Fabric solution for a leading farming company's supply chain system. At GetBoarded, he created an NFT/Token Gated Service compliant with the ERC1155 standard and integrated LivePeer, Ocean, and Lens Protocol technologies to enhance existing applications' functionality and capabilities. Other successful projects of his include File Guardian, Vendork, Drive 3.0, and Smart Voting.
Yogesh Agrawal is a software developer from BMS College of Engineering, Bengaluru, India. He has been working on various blockchain networks for over 2 years now. He participated in numerous hackathons and his notable projects include: web3-dream11 (implementing a live auction for players are traded and created external adapters to fetch data on the blockchain network via a decentralized oracle network such as chainlink which is then used to determine the rank of players); CrossChain-Hub (developing a protocol that establishes secure and efficient communication channels between different blockchain networks using simple API hooks); RaCoTo (Rainforest Proof-of-Conservation Tokens, creating Rainforest Proof-of-Conservation tokens, utilizing chainlink functions to get near-real-time satellite image analysis); and Milkomeda Djed Osiris (implementing oracle adapters). In all of these projects, he has acquired extensive experience in Solidity, JavaScript, toml, hardhat, ethers.js, next.js, tailwind, ...
To know more about our organization as a whole, check the following links:
We will implement the Shu version of Djed. Djed Shu uses two oracle prices to be more robust against oracle issues. This allows lower base fees for minting and redemption.
No dependencies.
We are fortunate to have the support of (though not a dependency on) Google and AOSSIE (the Australian Open Source Software Innovation and Education association) for this project through the Google Summer of Code program.
The frontend will be licensed using GPL or other copyleft open-source license.
The smart contracts will be licensed using AEL (the Autonomous Entity License) or other similar license that allows the code to be inspected, modified and enhanced, requiring uses of the code to be beneficial to the singleton autonomous entity that is based on that code.
Current versions (https://docs.stability.nexus/djed-stablecoin-protocols/versions) of Djed available on Cardano (Minimal and Osiris) are stable but sensitive to the oracles on which they depend. In these versions of Djed, the smart contract buys and sells stablecoins for an amount of ADA that depends on the latest ADA/USD price provided by the oracle. If, for any reason, such as oracle delays or price manipulations, the price provided by the oracle is different from the real price, the smart contract will buy or sell stablecoins for a price that is different than it should. For example, suppose that the oracle's price of USD in ADA is 1% higher than the real price of USD in ADA. Then, when a user redeems a stablecoin, the Djed smart contract will be giving the user an amount of ADA that it believes to be worth 1 USD but is actually worth 1.01 USD. This harms the contract's reserve.
In part to protect against any potential oracle issue, the versions of Djed currently available on Cardano impose fixed minting and redemption fees. For instance, with a fee of 2% and an oracle discrepancy of 1%, as in the example above, the Djed contract will be giving the user an amount of ADA per stablecoin that it believes to be worth 0.98 USD but is actually worth ~0.99 USD. Thus, even though there was a discrepancy between the oracle price and the real price, the Djed smart contract managed to avoid giving back more 1 USD worth of ADA. The fees provide robustness against price discrepancies. If the fee is X%, then the smart contract can tolerate a price discrepancy of up to X%.
The challenge with this approach is that it creates a wide spread between the effective minting and redemption prices. For a fee of 2%, users would have to buy stablecoins for 1.02 USD worth of ADA and sell them for 0.98 USD worth of ADA. Naturally, high fees discourage users from minting and redeeming stablecoins, hindering adoption of the protocol.
Djed Shu addresses this problem by using an oracle that provides 2 prices, instead of just a single latest price. These two prices could be, for instance, the latest price and a moving average, or minimum and maximum prices in a 24h period. Then, for each operation of buying or selling stablecoins or reservecoins, the Djed contract chooses the price that is most favorable to the contract's reserve.
Djed Shu has already been implemented on Zephyr (a fork of Monero where Djed has been implemented natively on the ledger rules) and it has been battle-tested for more than 6 months already (cf. https://zephyrprotocol.com/).
This project will implement Djed Shu for Cardano. To do so, we will:
For more information about the various versions, implementations and deployments of Djed, please visit:
A Djed with lower fees on Cardano will achieve higher adoption. Higher adoption will bring the following benefits and opportunities to Cardano:
Dr. Bruno Woltzenlogel Paleo (a.k.a. Zahnentferner) is the founder of the Djed Alliance and of The Stable Order. He is the main author of the Djed paper and a member of Djed's original R&D team, which implemented both Agenor (deployed as SigmaUSD on Ergo) and Belus (deployed as Milkomeda Djed Osiris on Cardano's EVM Sidechain Cardano). Therefore, he has the deep knowledge of the Djed Stablecoin Protocol that is crucial to develop a new version of Djed. Furthermore, during his academic career, he has already received and managed more than 1 million USD in research grants in several countries and always achieved the goals of the proposed projects.
Tanya Srinivas, Anshdeep Singh, Roshan Raj Singh, Yogesh Agrawal have been contributing to the Milkomeda Djed Osiris repos for several months and are therefore already familiarized with the code that will be used as a starting point for Djed Shu.
To know more about our organization as a whole, check the following links:
Milestone outputs:
Acceptance criteria:
Evidence of milestone completion:
Milestone outputs:
Acceptance criteria:
Evidence of milestone completion:
Milestone outputs:
Acceptance criteria:
Evidence of milestone completion:
Dr. Bruno Woltzenlogel Paleo (a.k.a. Zahnentferner) - Djed Protocol researcher and engineer, software architect, mentor.
Tanya Srinivas, Anshdeep Singh, Roshan Raj Singh, Yogesh Agrawal - Software developers responsible for frontend, backend, smart contracts, testing and devops of Djed Shu.
Assumption: 1 ADA = 0.4 USD .
According to Indeed (https://www.indeed.com/career/software-engineer/salaries), the average base salary of a software engineer, excluding benefits is 22000 ADA per month. We estimate that we need 6 months to complete this project.
5 engineers for 6 months would cost, on average, 5 x 6 x 22000 ADA, which is equal to 660000 ADA. We are requesting only 200000 ADA, which is the maximum amount in the "Cardano Developers: Open" category. All requested funds will be used for technical R&D tasks of the Djed Shu.
According to our estimates, based on average values by Indeed, we are going to complete this project for only 30% the cost that it would normally have.