npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@floatprotocol/float-contracts

v1.0.3

Published

The smart contracts behind Float Protocol

Readme

float_thumbprint

Production CI Monitor TWAP

What is Float Protocol?

Float Protocol is building the decentralised monetary system of the future. At the heart of the protocol is the FLOAT token. It is designed to be the first truly native internet currency.

Unlike most stablecoins, whilst FLOAT is designed to be stable and has significantly lower volatility than most cryptocurrencies, it is not designed to hold its price at $1.00. Instead, it focuses on maintaining your buying power:

$1,000 from May 2020 has the same buying power as $952 in May 2021 (source bls.gov).

In real terms, you are down -4.7% in your "stablecoin", even though you still see $1,000.

Float Protocol originates from novel research while applying the best techniques of prior work:

  • Dutch Auction Stabilisation - Float Protocol uniquely applies Dutch Auctions to price stabilisation providing arbitrage opportunities to contract and expand supply.
    • Single Block Composability - Dutch Auctions are instant settlement which allows for flash loans, DEX aggregation opportunities; all with zero speculation.
    • User benefiting slippage - As prices start high and decrease deterministically, any slippage only results in more profit.
  • Decentralised & Democratic - DAO owned and community controlled with >50% of governance token distributed according to our Democratic Launch.
  • Algorithmically controlled - The price movement is clearly defined, autonomous and algorithmic with no active management.
  • Basket Tracking - FLOAT tracks the contents of a basket of "crypto goods" without sudden spikes.
  • 2 Token System - FLOAT is the stablecoin targeting a band around the target price. BANK is the governance token that accrues seigniorage revenue and excess collateral value.

Responsible Disclosure

See SECURITY.md

Contributing

The contracts are compiled with Hardhat and tested using Waffle and TypeScript.

Installation

# Clone repository from github
git clone https://github.com/FloatProtocol/float-contracts.git
cd float-contracts
# Install dependencies
yarn

Update the .env file with your API Keys for deploying to an Ethereum Public Testnet.

Build

yarn build

Test

yarn test

Coverage

yarn coverage

Deploy to Hardhat EVM

yarn dev
yarn local:dev

Will deploy the contracts to localhost:8545.

Running Slither

Slither is a Solidity static analysis framework. To run it locally:

pip3 install slither-analyzer
slither .

In-Depth security testing

Use the eth-security-toolbox docker image.

docker pull trailofbits/eth-security-toolbox
docker run -it -v $(pwd):/share trailofbits/eth-security-toolbox