Code Monkey home page Code Monkey logo

inflashion's Introduction

Inflashion: an agent-based simulation of the Flash Protocol

Check out the demo here: https://inflashion.surge.sh/


The Flash protocol is a now-deprecated DeFi protocol based on the Ethereum network.

The core principle of the protocol is flashstaking, where the basic user journey is as follows:

  1. User stakes a number of $FLASH tokens for x days.
  2. User receives an immediate payout of $FLASH tokens, dependent on the amount staked and time staked for. These tokens are newly minted by the protocol.
  3. After x days, user recieves their staked $FLASH tokens back in full. User can also unstake before x days have passed, but a relative proportion of their staked tokens will be burned.

The minting and burning of tokens is determined by the behaviour of market participants, creating an economy that is quite interesting to analyse. This project aims to simulate and visualise the economy and how it is affected by those behaviours.

For more info, check out these links:


This simulation models users as agents, who each have their own wallet of $FLASH tokens, and make random decisions based on Gaussian parameters.

You can:

  • change these parameters to represent various market conditions
  • follow each agent's actions and the status of their wallets
  • view graphs of the protocol as a whole

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.