Skip to content
Jalebi Protocol

Jalebi Protocol

A strategy game and swap protocol played with Jalebis.

Created on 10th December 2023

•

Jalebi Protocol

Jalebi Protocol

A strategy game and swap protocol played with Jalebis.

The problem Jalebi Protocol solves

This project integrates 1inch fusion API to perform $JLB (Jalebi) token swaps. Jalebi aims to be a play-to-win protocol where players challenge one another and battle their friends with Jalebis. One can get $JLB through the interface itself (thanks to 1inch fusion API).

Jalebi are ERC20 tokens deployed from a custom contract inheriting from OpenZeppelin's ERC20 implementation. JalebiProtocol is the custom implementation of the game with challenge(), accept(), and battle() functions.

The contracts are deployed on: Polygon zkEVM testnet, Scroll Sepolia Testnet, Sepolia Testnet, and Linea Testnet.

The contracts can be found here:

  1. 0x978ad5f2baa8f32e1e67c389ace822190a3e5dbe (Protocol contract on Linea testnet)
  2. 0x8652f9668947174998faa10faa6e2c1a82c1adae (Token contract on Linea Testnet)

Challenges I ran into

  1. I tried to integrate Infura's Gas API for efficient gas price suggestions but the API seems to be broken. Had to fall back to 1inch Gas API.

  2. Almost all Linea test faucets were dried or out of service so had to procure LINEA from friends.

Tracks Applied (4)

1inch Track

The Dapp interface extensively uses 1inch Developer Portal APIs and the Fusion API to get information about current swap...Read More
1inch Network

1inch Network

Polygon Track

The Jalebi ERC20 and the Jalebi Protocol contracts have been deployed on Polygon zkEVM testnet.
Polygon

Polygon

MetaMask Track

I have used the Metamask SDK to seamlessly connect the user wallet to my Dapp. The project is also deployed on the Linea...Read More
MetaMask

MetaMask

Scroll Track

The Jalebi protocol smart contracts are deployed on the Scroll Sepolia testnet.
Scroll

Scroll

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio