← Back to home

Jalebi Protocol

A strategy game and swap protocol played with Jalebis.

Screenshots

Jalebi Protocol screenshot 1
Jalebi Protocol screenshot 2
Jalebi Protocol screenshot 3
Jalebi Protocol screenshot 4
Jalebi Protocol screenshot 5

Problem Statement

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:0x978ad5f2baa8f32e1e67c389ace822190a3e5dbe (Protocol contract on Linea testnet)0x8652f9668947174998faa10faa6e2c1a82c1adae (Token contract on Linea Testnet)Linkshttps://github.com/basil08/jalebi-backendhttps://github.com/basil08/jalebi-frontendhttps://github.com/basil08/jalebi-protocol-contracts

Solution

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.Almost all Linea test faucets were dried or out of service so had to procure LINEA from friends.

Hackathon

ETHIndia 2023

2023

Prizes

  • 🏆

    Deploy on Scroll

    Scroll

Contributors