# Welcome to Starfish Finance

Starfish Finance is incubated by the Astar Network program. We are building the next generation multi-chain one stop <mark style="color:blue;">DeFi</mark> x <mark style="color:purple;">Entertainment-Fi</mark> experience on Arbitrum One & Astar Network. Through gamification of user experience, Starfish Finance merges DeFi, Entertainment-Fi, NFT and Starfish culture to curate a new chapter of Decentralised Financing.

## Features on Starfish

<figure><img src="/files/ibAtL19dbAH0yT2I7JHg" alt="DeFi x Entertainment-Fi Product Suite"><figcaption><p>Product Suite</p></figcaption></figure>

The Starfish vision is to be the ultimate Web3 Entertainment-Fi brand. Our product has a strong foundation in DeFi technology, and extends to gamified features across Astar Network, Arbitrum and more ecosystems. SEAN Times, our community newsletter communicates the Starfish leadership’s market insights on a weekly basis.

### Swap (Astar Network)

Trade tokens and stablecoins on multi-token pools

### Liquidity (Astar Network)

Provide liquidity or create pools of maximum 8 tokens and share trading fees

### Farm (Astar Network)

Stake Liquidity Pool Tokens into Farms and earn bonus rewards

### Stake (Astar Network)

* Stake SEAN to earn USDC stablecoin as a split of protocol revenue generated from trading
* Stake SEAN to get sSEAN as an access to Seabed Launch (coming soon)

### $DOT Liquid Staking (Astar Network)

Stake DOT to earn sDOT and rewards

### Games (Arbitrum One & Astar Network)

Starfish Finance is leading the next massive narrative-- Entertainment-Fi. The protocol gamified DeFi features to provide a state-of-art experience for the Web3 community.

### Seabed Launch (coming soon)

IDO and INO for tokens and NFTs

### StarfishDAO (coming soon)

Vote on protocol's future changes and development

### Getting Started:

Follow our handy guides to get started on the basics as quickly as possible:

{% content-ref url="/pages/5tkwo9UNwa83OR4mM905" %}
[Wallets & Networks](/get-started/wallets-and-networks)
{% endcontent-ref %}

{% content-ref url="/pages/Nl1S9JHjgax3ZEOOEexf" %}
[Join our Community](/get-started/join-our-community)
{% endcontent-ref %}

###


# About Starfish Finance

Starfishes are born to be friendly. As a community-driven protocol, we value our community, and we endeavor to share our spirit across other communities. We wish to empower the community with an inclusive yet unique Starfish culture.

## Brand Values

**What does the Starfish brand stand for?**&#x20;

* Community - the soil we care for and grow together.
* Collaboration - the laboratory we create and innovate.
* Convenience – the infrastructure we connect with our users.

**The Core Brand Values**

* A one-stop journey with Multi-token stablecoin swap.
* Embracing a multi-chain future connecting Layer 1s and Layer 2s
* Build a multi-chain Entertainment- Fi introducing gamified experience of DeFi & NFT

## **Brand Personality**

**Who is SEAN? ...**&#x20;

Sean is born from the Starfish Planet of our logo<img src="https://abs-0.twimg.com/emoji/v2/svg/2733.svg" alt="✳️" data-size="line">&#x20;

Sean is a fren of everyone. Sean likes all the colours of the<img src="https://abs-0.twimg.com/emoji/v2/svg/1f30a.svg" alt="🌊" data-size="line">&#x20;

Sean loves a good burger after workout<img src="https://abs-0.twimg.com/emoji/v2/svg/1f354.svg" alt="🍔" data-size="line">&#x20;

Sean enjoys crypto and NFT trading<img src="https://abs-0.twimg.com/emoji/v2/svg/1f4b0.svg" alt="💰" data-size="line">&#x20;

Sean embodies inclusivity and connectivity - the heart of the multi-chain future.<img src="https://abs-0.twimg.com/emoji/v2/svg/2764.svg" alt="❤️" data-size="line">&#x20;

Sean vibes.

![](/files/HijnzRc5rGyR44xRHOJ2)

## The Vision

Starfish Finance is incubated by the Astar Builders program. We are building the next generation DeFi x NFT-Fi headquarters on Astar Network within the Polkadot ecosystem. Through gamification of user experience, Starfish Finance offers stablecoin swap and NFT-Fi on top of an enhanced Balancer AMM model to deepen the liquidity of crypto or NFT trading and financing.

Come to Starfish Finance and Swap, Provide LP, Stake, Farm, Launch, and unleash your liquidity with NFT-Fi … Do it all under one roof. Users of the Platform will have the ability to immerse themselves into a fully integrated, highly accessible DeFi x NFT-Fi Financing Platform.

![](/files/1b2iy5CfGpWo8Rrslmos)


# Wallets & Networks

To use Starfish, you need wallet that is connected to Arbitrum One or Astar Network. Currently we support 3 wallets - <mark style="color:orange;">**MetaMask**</mark>, <mark style="color:orange;">**Unstoppable**</mark> and <mark style="color:orange;">**Coinbase Wallet**</mark>

<figure><img src="/files/CVPylSG3g9fnZN1iwCcN" alt=""><figcaption></figcaption></figure>

### Connect with Metamask Wallet

MetaMask by default supports both the Arbitrum One & Astar network and allows you to send and receive coins. However, when you connect MetaMask to Starfish, Starfish will automatically configure MetaMask to work with Arbitrum One & Astar network.

For more info about MetaMask, please visit their website [https://metamask.io](https://metamask.io/)

You can connect to these 4 networks to start your Starfish adventure, Arbitrum One, Arbitrum Goerli (Testnet of Arbitrum One), Astar Network or Shibuya Testnet (Testnet of Astar Network)

{% tabs %}
{% tab title="Arbitrum One" %}
This documentation corresponding contains details for the RPC - HTTP, WSS endpoints

<table><thead><tr><th width="253.5">Network name</th><th>Arbitrum One</th></tr></thead><tbody><tr><td><strong>Chain ID</strong></td><td>42161</td></tr><tr><td><strong>Symbol</strong></td><td>ETH</td></tr><tr><td><strong>EVM RPC</strong><br><strong>(for EVM wallets)</strong></td><td><p>RPC server address:</p><p><a href="https://arb1.arbitrum.io/rpc ">https://arb1.arbitrum.io/rpc </a></p></td></tr><tr><td><strong>Block explorer</strong></td><td><a href="https://arbiscan.io/ ">https://arbiscan.io/ </a></td></tr></tbody></table>
{% endtab %}

{% tab title="Arbitrum Goerli" %}
This documentation corresponding contains details for the RPC - HTTP, WSS endpoints

<table><thead><tr><th width="253.5">Network name</th><th>Arbitrum Goerli</th></tr></thead><tbody><tr><td><strong>Chain ID</strong></td><td>421613(0x66eed)</td></tr><tr><td><strong>Symbol</strong></td><td>ETH (Goerli)</td></tr><tr><td><strong>EVM RPC</strong><br><strong>(for EVM wallets)</strong></td><td><p>RPC server address:</p><p><a href="https://rpc.goerli.arbitrum.gateway.fm">https://rpc.goerli.arbitrum.gateway.fm</a><br><a href="https://arbitrum-goerli.public.blastapi.io">https://arbitrum-goerli.public.blastapi.io</a></p></td></tr><tr><td><strong>Block explorer</strong></td><td><a href="https://goerli.arbiscan.io/">https://goerli.arbiscan.io/</a></td></tr></tbody></table>
{% endtab %}

{% tab title="Astar Network" %}
This documentation corresponding contains details for the RPC - HTTP, WSS endpoints

<table><thead><tr><th width="253.5">Network name</th><th>Astar Network</th></tr></thead><tbody><tr><td><strong>Parent chain</strong></td><td>Polkadot</td></tr><tr><td><strong>Chain ID</strong></td><td>592</td></tr><tr><td><strong>Symbol</strong></td><td>ASTR</td></tr><tr><td><strong>EVM RPC</strong><br><strong>(for EVM wallets)</strong></td><td><p>RPC server address:</p><ul><li><a href="https://astar.public.blastapi.io">https://astar.public.blastapi.io</a></li><li><a href="https://evm.astar.network">https://evm.astar.network</a></li><li><a href="https://astar.api.onfinality.io/public">https://astar.api.onfinality.io/public</a></li><li><a href="https://astar-rpc.dwellir.com">https://astar-rpc.dwellir.com</a></li></ul></td></tr><tr><td><strong>Block explorer</strong></td><td><p>Substrate: <a href="https://astar.subscan.io">https://astar.subscan.io</a></p><p>EVM: <a href="https://blockscout.com/astar/">https://blockscout.com/astar/</a></p></td></tr></tbody></table>
{% endtab %}

{% tab title="Shibuya Testnet" %}

| Network name       | Shibuya Network (parachain testnet)                                                                                                                                                                                                                                                                                   |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Parent chain**   | Tokyo (own relay chain)                                                                                                                                                                                                                                                                                               |
| **Chain ID**       | 81                                                                                                                                                                                                                                                                                                                    |
| **Symbol**         | SBY                                                                                                                                                                                                                                                                                                                   |
| **EVM RPC**        | <p>RPC server address:</p><ul><li><a href="https://evm.shibuya.astar.network"><https://evm.shibuya.astar.network></a></li><li><a href="https://shibuya-rpc.dwellir.com"><https://shibuya-rpc.dwellir.com></a></li><li><a href="https://shibuya.public.blastapi.io"><https://shibuya.public.blastapi.io></a></li></ul> |
| **Block explorer** | <p>Substrate: <a href="https://shibuya.subscan.io/"><https://shibuya.subscan.io/></a><br>EVM: <a href="https://blockscout.com/shibuya"><https://blockscout.com/shibuya></a></p>                                                                                                                                       |
| {% endtab %}       |                                                                                                                                                                                                                                                                                                                       |
| {% endtabs %}      |                                                                                                                                                                                                                                                                                                                       |

### Connect with Unstoppable

You can also use your Unstoppable Domain Wallet to operate on Starfish Finance.

<figure><img src="/files/nWLpYLuvkHszJV8oZgRE" alt=""><figcaption></figcaption></figure>

For more info about Unstoppable, please visit: <https://unstoppabledomains.com/web3-domains/wallet>

### Connect with Coinbase Wallet

Starfish Finance also integrates Coinbase Wallet for the features on Arbitrum One, Users are able to connect via Coinbase Wallet.

<figure><img src="/files/6k8yciEctG63h43wRigm" alt=""><figcaption><p>You can find Starfish Finance on <a href="https://www.coinbase.com/web3">coinbase</a></p></figcaption></figure>

The connecting procedure is similar to MetaMask. For more info about Coinbase Wallet, please visit: <https://www.coinbase.com/wallet>


# Add Tokens

You can simply click this **Add Token** button to import tokens to your wallet.

<figure><img src="/files/nAhAXEpppXRFJqOhQuMJ" alt=""><figcaption></figcaption></figure>


# Choose NFT as your Profile Pic

To add personal touch on your profile, you can choose the your NFT on Arbitrum or the following Astar NFTs you hold as your profile pic!

***Astar Degen：**&#x30;xd59fC6Bfd9732AB19b03664a45dC29B8421BDA9a*\
***Astar Cat：**&#x30;x8b5d62f396Ca3C6cF19803234685e693733f9779*\
***Nika Conqueror：**&#x30;xE6cB7CE7737D9ffA29267fcBdD0940Ee624d897D*\
***AstarGhost：**&#x30;xB4bD85893d6F66869d7766aCe1b1eb4d867d963e*\
***Kongz of Astar：**&#x30;x6057ce60779F02376891BEE353BC49D7197AF009*\
***Astar Punks：**&#x30;x1b57C69838cDbC59c8236DDa73287a4780B4831F*

Click the SEAN icon here, and start choosing your favourite NFT as your profile pic.

<figure><img src="/files/nq1oN8Dq85kVHSJaUYHv" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GXM5wKfju9MRDJlESMgn" alt=""><figcaption></figcaption></figure>


# Join our Community

Come join our community and become a friend with SEAN - your best friend in Web3!

![](/files/2qUfl4c1NZK20dn4KwQV)

Twitter：<https://twitter.com/Starfish_Fi>\
Telegram：<https://t.me/starfishfinanceofficial>\
Medium：<https://starfishfinance.medium.com/>\
Discord：<https://discord.com/invite/SxBNRR3EwM>


# Tokenomics

### $SEAN - The Starfish Finance token

Token Ticker: SEAN

Total Supply: 1,000,000,000

Initial Liquid Tokens: 37,300,000<br>

$SEAN is natively on Astar Network, and currently bridged to Ethereum and Arbitrum One via cBridge by [Celer Network](https://celer.network/).<br>

* [To Bridge $SEAN between Astar Network ↔️ Ethereum Mainnet](https://cbridge.celer.network/592/1/SEAN)
* [To Bridge $SEAN between Astar Network ↔️ Arbitrum One](https://cbridge.celer.network/592/42161/SEAN)
* [To Bridge $SEAN between Ethereum ↔️ Arbitrum One](https://cbridge.celer.network/42161/1/SEAN)

The token addresses in different networks are as follows.

{% tabs %}
{% tab title="Arbitrum One" %}

<table><thead><tr><th width="253.5">Network name</th><th>Arbitrum One</th></tr></thead><tbody><tr><td><strong>Token Contract Address</strong></td><td>0x37596F20adEf5CC9618c8b6Ddfa9DCB6329CB0fD</td></tr><tr><td><strong>Symbol</strong></td><td>SEAN</td></tr><tr><td><strong>Explorer</strong></td><td><a href="https://arbiscan.io/token/0x37596F20adEf5CC9618c8b6Ddfa9DCB6329CB0fD">https://arbiscan.io/token/0x37596F20adEf5CC9618c8b6Ddfa9DCB6329CB0fD</a></td></tr></tbody></table>

{% endtab %}

{% tab title="Astar Network" %}

<table><thead><tr><th width="253.5">Network name</th><th>Astar Network</th></tr></thead><tbody><tr><td><strong>Token Contract Address</strong></td><td>0xEe8138B3bd03905cF84aFE10cCD0dCcb820eE08E</td></tr><tr><td><strong>Symbol</strong></td><td>SEAN</td></tr><tr><td><strong>Explorer</strong></td><td><a href="https://blockscout.com/astar/token/0xEe8138B3bd03905cF84aFE10cCD0dCcb820eE08E/token-transfers">https://blockscout.com/astar/token/0xEe8138B3bd03905cF84aFE10cCD0dCcb820eE08E/token-transfers</a></td></tr></tbody></table>
{% endtab %}

{% tab title="Ethereum Mainnet" %}

| Network name               | Ethereum Mainnet                                                        |
| -------------------------- | ----------------------------------------------------------------------- |
| **Token Contract Address** | 0xA719CB79Af39A9C10eDA2755E0938bCE35e9DE24                              |
| **Symbol**                 | SEAN                                                                    |
| **Explorer**               | <https://etherscan.io/token/0xa719cb79af39a9c10eda2755e0938bce35e9de24> |
| {% endtab %}               |                                                                         |

{% tab title="Arbitrum Goerli" %}
Testnet $SEAN for testnet usage

<table><thead><tr><th width="253.5">Network name</th><th>Arbitrum Goerli</th></tr></thead><tbody><tr><td><strong>Token Contract Address</strong></td><td>0xCff0cd779D7ccdEB14fEFB4E508730F90b997ba6</td></tr><tr><td><strong>Symbol</strong></td><td>SEAN</td></tr><tr><td><strong>Explorer</strong></td><td><a href="https://goerli.arbiscan.io/token/0xcff0cd779d7ccdeb14fefb4e508730f90b997ba6">https://goerli.arbiscan.io/token/0xcff0cd779d7ccdeb14fefb4e508730f90b997ba6</a></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Tokenomics

Seed: 4% (10% upon listing, 3 months cliff, daily vesting for 12 months)

Private: 2.4% (15% upon listing, 3 months cliff, daily vesting for 12 months)

Public: 4.6% (20% upon listing, monthly vesting for 12 months)

Liquidity: 10% (5% upon listing, monthly unlock for 3 years)

Reserve: 10% (Reserve use determined by DAO afterwards)

Community Growth: 15% (5% upon listing, monthly unlock for 3 years)

Ecosystem: 40% (2% upon listing, monthly unlock for 3 years)

Team: 10% (6 months cliff, quarterly vesting for 3 years)

Advisor: 4% (6 months cliff, quarterly vesting for 3 years)

<figure><img src="/files/5L0smu6mEcM0EdjR46vx" alt=""><figcaption></figcaption></figure>


# $SEAN Utility

$SEAN has a maximum supply of 1 billion, by holding and staking $SEAN token, users can enjoy different perks include but are not limited to:

* Use for Starfish Entertainment-Fi & Gaming.
* Stake in cSEAN to earn split of fees in stablecoins
* Join NFT auctions upon liquidation events
* Stake in sSEAN to get access to Seabed Launch events
* Vote and exercise governance right in StarfishDAO


# The Entertainment-Fi

Starfish Finance is rolling out more features to lead and support the new wave in Entertainment-Fi, where .


# The Prediction Market

Version 1.0 | Currently on Arbitrum One & Astar Network

> Play to earn?
>
> Nah. Win to earn in 2023.

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*ZZiyKdodQxpvWIcsrxxZkg.jpeg" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:purple;">Arbitrum One version:</mark> <https://app.starfish.finance/predictionMarket>

<mark style="color:blue;">Astar Mainnet version:</mark> <https://app.starfish.finance/predictionMarket>
{% endhint %}

## Introducing Prediction Market <a href="#c9d8" id="c9d8"></a>

The Starfish Finance team has never stopped building, and our pursuit of excellence has never been stronger! Our team is delighted to announce the first step of the multichain future of Starfish Finance. We are launching our Prediction Market on both Arbitrum One & Astar Network. This is also the debut of a new era in Web3, the Entertainment-Fi, which the Starfish team is taking the lead from the Aquarium.

## What is Prediction Market? <a href="#db69" id="db69"></a>

Prediction Market is a decentralized platform that allows users on Starfish Finance to trade on the ups and downs of a certain token (We are kicking off the king $BTC). We are deploying this new feature on both Arbitrum One & Astar Network.

From now on, the Starfishes have the power to predict the $BTC trend, and what’s more? Perhaps your vision can make you big wins!


# How to predict the market

> Well, we don't know how to predict the market either lul.

But we will let you know how to play the prediction market on Starfish😊.

### A. Preparation <a href="#id-511d" id="id-511d"></a>

**A1. Connect Wallet, and choose your network, Arbitrum One or Astar Network.**

**A2. Wait for the next round to start and commit your tokens to play.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*qx6825Yx5H1LUvZBojf2sg.png" alt=""><figcaption><p>Every new round will not start until the settlement of the last round is completed.</p></figcaption></figure>

The initial stage of the Starfish Prediction Market will support BTC/USD market. As the development progresses and community request, our team will onboard more trading pairs on to Prediction Market in the future.

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*5XJmd3ZUxkPzxaZ93iAUwQ.png" alt=""><figcaption><p>Switch Market is coming soon</p></figcaption></figure>

### B. Predict the trend <a href="#e336" id="e336"></a>

**B1. Prediction the next round (Round #10293)**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*VCjFRZl0dpEcx3eA6hqoag.png" alt=""><figcaption></figcaption></figure>

Now it’s your time to play!

In the “Next” section, you’ll see a green **UP** button and a red **DOWN** button. Press **UP,** if you expect a rise in the $BTC price, or press **DOWN** otherwise.

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*1lgNFMDT6dPxL3tbvk8t1w.png" alt=""><figcaption></figcaption></figure>

Each outcome has a different reward multiplier. The multiplier will change over time as the “Prize Pool” increases depending on the contributions of the participants.

> ⚠️ Pay attention to the timer. Each round is open for 5 minutes/300 seconds. Make sure you press in time before the time’s up!

**B2. After you press ‘UP’ or ‘DOWN’, input the amount of tokens you wish to commit.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*gflYJHZpNhFh_0ezhXt5bg.png" alt=""><figcaption><p>Input commitment</p></figcaption></figure>

Then, you are set to go! Click the **Play** button and follow the instructions of your wallet, and your game will be recorded on the blockchain!

**B3. After your transaction confirmation, you can see a summary of your prediction here.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*B8kihpPl6qoHm0V4l8rtBw.png" alt=""><figcaption><p>Good luck!</p></figcaption></figure>

### C. The Settlement <a href="#id-23cc" id="id-23cc"></a>

**C1. Watch the live settlement (Round #10293) & See the results.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*UQWiRPRaTfrwx0pScBkZxg.png" alt=""><figcaption><p>All eyes on there please!</p></figcaption></figure>

The settlement will last for 5 minutes. You can watch the price update for five minutes if you like;)

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*-Egk3Wz6mAYRbIM5exvrHQ.png" alt=""><figcaption><p>The card will change automatically based on the price performance</p></figcaption></figure>

As the five-minute window finishes, the “IN SETTLEMENT” section will change to “Calculating”. Calculating the results only takes a snap of fingers.

The settled round will move down in the result list and marked as “SETTLED”. The result of each round will be displayed with either a GREEN UP, or a RED DOWN.

**C2. Collect your prize.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*T8NkpnmKn7qnv99c0jg_XA.png" alt=""><figcaption><p>The reward pop-up</p></figcaption></figure>

If you win your round, you can click **Collect Prize** button on the top right corner, and a pop-up window will show up. It shows the entire game history of a player. Click **Claim All** to move them into your wallet! 😍

**C3. Recent game history.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1120/1*mOgHEQV9wS2Fsa7wg2LmBw.png" alt=""><figcaption><p>The recent game history pop-up</p></figcaption></figure>

Click on **VIEW MORE** in the Game History panel to open the pop-up window. You can check the past 10 finished games there.

### Good Luck Winning! <a href="#id-1e22" id="id-1e22"></a>


# The Coin Flip

Version 1.0 | Currently only on Arbitrum One

> “A flip a day keeps the bill away.”

<figure><img src="/files/xPDAsgV8KV1fdsnJPfaj" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:purple;">Arbitrum One version:</mark> coming soon!

<mark style="color:blue;">Arbitrum Goerli version:</mark> <https://flipfest.starfish.finance/game/coinFlip>
{% endhint %}

## Introducing Coin Flip <a href="#c9d8" id="c9d8"></a>

Starfish Finance proudly presents our second game following the [prediction market](/entertainment-fi/the-prediction-market), Coin Flip, on Arbitrum One as we’re stepping into the new era of Web3 — Entertainment-Fi. A player simply chooses heads or tails to get rewarded or test their luck in the next games. The charm of 50–50 is the foundation of all games!The result is binary. If the player wins, the reward, together with the original committed funds will be automatically sent to their wallet. Otherwise, the player might move on to the next round to test their luck.


# How to flip a coin

### A. Get ready & choose a side <a href="#id-6bff" id="id-6bff"></a>

**A1. Connect Wallet, and make sure you’re on Arbitrum One.**\
**A2. Choose a side!**

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*lwZj-CljggQkfFZ6s-DR3Q.png" alt=""><figcaption><p>Choose heads or tails</p></figcaption></figure>

Simply click on the ‘heads’ or ‘tails’ to get started, and the player can always change their mind before confirming the transaction.

### B. Commitment <a href="#id-33e4" id="id-33e4"></a>

**B1. Select the token the player wants to commit.**

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*TsHbRRCmQYzg5CGPOKbRsQ.png" alt="" width="375"><figcaption><p>Click on the drop down menu to select tokens</p></figcaption></figure>

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*vJpIqBORg_ow9Rc4AzhFng.png" alt=""><figcaption><p>Select token</p></figcaption></figure>

The Coin Flip game will be launched first on Arbitrum One, supporting [$SEAN](https://dexscreener.com/ethereum/0x4f6c829b8acb1130978e82917d304f2221dd6bb1) and [$ARB](https://dexscreener.com/arbitrum/0xcda53b1f66614552f834ceef361a8d12a0b8dad8) in the initial stage. The Starfish team will consider onboarding other tokens for the users to play this game in the future.

**B2. Input the amount of tokens you want to commit**

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*LPXtGpxWwpQmN-39ioRIxw.png" alt=""><figcaption></figcaption></figure>

Once a player has selected the token, put in the amount of tokens they want to commit in the game. There is a minimum and maximum limit for different tokens. The player can input the amount manually or use the pre-defined amounts (as per the buttons above the “double or nothing” tab!

**B3. Click on the ‘Double or Nothing’, and wish for the best**

### C. Settlement <a href="#id-2f21" id="id-2f21"></a>

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*r5gO5cB5M9WNgldnQpwvig.png" alt=""><figcaption><p>Congrats!</p></figcaption></figure>

The result is binary. If the player wins, the reward, together with the original committed funds will be automatically sent to their wallet. Otherwise, the player might move on to the next round to test their luck.

### D. Recent history <a href="#id-8be2" id="id-8be2"></a>

**D1. Recent transaction history**

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*dEg9NIqw8UdBwPTojI2W1g.png" alt=""><figcaption><p>Global Transaction History</p></figcaption></figure>

There is a dropdown menu for players to view the results of the latest 10 games. Each player’s participation is represented by their wallet address. They can see who else are playing the game.

**D2. Personal history**

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*lMhWx7Tc9Rz2tg_7M69hCg.png" alt=""><figcaption><p>Personal History</p></figcaption></figure>

The player can also switch to the ‘Personal’ tab to view their own stats & game results in the last 8 games.

**D3. Leaderboard**

<figure><img src="https://miro.medium.com/v2/resize:fit:1400/1*PGyQVJeTQyNxdkgjSg0FYg.png" alt=""><figcaption><p>Leaderboard (Demo)</p></figcaption></figure>

Furthermore, they can switch to the ‘Leaderboard’ tab to see the top 50 players ranked by their net winnings and their stats ;) (Maybe one can identify a pattern of winning?)


# The Vault

### Overview

Starfish's fundamental component is the Vault; it is a smart contract that stores and controls all tokens in each Starfish pool. The Vault also serves as the gateway via which most Starfish operations (swaps, joins, and exits) are carried out.

### Protocol AMM Logic

Contrary to conventional AMMs, the Starfish protocol distinguishes the AMM logic from the token management and accounting. Token management/accounting is administered by the vault, while each liquidity pool follows an individual AMM logic. As such, the pools are contracts external to the vault, the pool administrator can implement any arbitrary, customized AMM logic, such as fee and interest allocation, as per their preference.

![](https://lh6.googleusercontent.com/_fnRB_m8AnL_lR7LEli6UKCq4T-4BVLJzQntscKFUGuojy3lecNP2Dn2yZ-J4NiFoxj0j3JO4XqjOLRDfYEiOCEEP6RD5t0K2PblWX7jy6tC2mAqX-vCtfA5OudihRyL_kXbN-MnhZsJPoDexA)

### Gas Efficiency

The Starfish’s protocol vault executes a smart swap by transferring uniquely the net token amounts from and to the vault, regardless of swaps being carried out in batches against multiple pools. This mechanism economizes a significant amount of gas fee in the process.

Since only final net amounts are transferred, the threshold of conducting arbitrage trades is significantly lowered. For example, an arbitrager with no tokens in his wallet detects a price asymmetry among different Starfish pools, might trade USDC for USDT in pool 1, USDT for SEAN in pool 2, and finally SEAN for USDC in pool 3, which could make him a profit in USDC.

A more realistic scenario would be, if a user trades token A for token B, knowing that he will soon trade token B for token A in a few hours, it is likely that he does not need to “receive” token B immediately after the first trade. Starfish can keep both tokens in the vault which may be used for the next trades, thus avoiding multiple ERC20 transactions before “finalizing” the intended trade. It is expected to have external aggregators, and curators relying on Starfish’s internal balances to provide trades with the lowest gas costs to their users.

![](https://lh5.googleusercontent.com/5v38u0e65uCVTmWMww_w99fon8_RgfSiwxENf5lWas5e_W3AG-fE0p8yZnreCzwkebUp2utVqlpohqzrZjuEZzjgikYKs6mL3FldEf0LTb0C1jcgUS2m98aqKKKKkhJpReN2y9cqoRFxvI7VyQ)

At launch, the Starfish protocol will offer weighted pools (constant weight) and stable pools which are suitable for tokens that are soft pegged to each other.

Shortly after the launch, there will be smart pools, allowing ongoing parameter changes. The Starfish team expects a great variety of pools would be created by other partners, and users as the protocol development matures. All pools will be able to provide trading liquidity thanks to the smart order router.

### Starfish Pools

At launch, the Starfish protocol will offer **Weighted Pools** (constant weight) and **Stable Pools** which are suitable for tokens that are soft pegged to each other.

Shortly after the launch, there will be smart pools, allowing ongoing parameter changes. The Starfish team expects a great variety of pools would be created by other partners, and users as the protocol development matures. All pools will be able to provide trading liquidity thanks to the smart order router.


# Swap

Follow the step-by-step guide below to start swapping tokens on Starfish!

{% hint style="info" %} <mark style="color:purple;">Shibuya Testnet version:</mark> <https://shibuya.starfish.finance>

<mark style="color:blue;">Astar Mainnet version:</mark> <https://app.starfish.finance>
{% endhint %}

1. Go to the Swap page.
2. Connect your wallet if needed. You will be asked in MetaMask to connect to Astar Network, if this is the first time you enter the world of Astar.

![](/files/O9I4YWQl54SMEBkzp5CL)

3\. Select the token you would like to swap. You can choose tokens from the token list, by click on the pay and receive token drop-downs.

![](/files/J30k3kHS9WTx27adbbFH)

![](/files/T3KO3snaGSm2yad3MFc3)

4\.  Enter the amount of token you want to swap with, or click **MAX** to swap all your tokens in wallet. If you're done with the input amount, click **Preview Order** to check on your final swap order.

![](/files/3zHrEBbngBA750moXnKo)

5\. You'll see the Price Impact, Est. Transaction Fee, and Route that this swap is going through.&#x20;

You can click on the "Refresh" button on the top right corner to update the pool data and make sure you're seeing the up-to-date swap rate. If everything looks okay, click **Confirm Swap** to continue the transaction. Click **Confirm** in MetaMask to start swapping!

![](/files/mLpYxmJoXdyO4xOMMBJ7)


# Liquidity

Invest strategically with customizable

Starfish AMM logic by creating a launchpad for teams to innovate with different AMM strategies. This means if you want to launch a new style of trading pool, you can focus on the high-level concepts without having to worry about low-level token transfers, balance accounting, security checks and order routing. With Balancer V2, this all comes out of the box.

Existing pool types are:

* **Weighted Pools** - pools with custom weighting, and max 8 tokens
* **Stable Pools** - Pools with 2-5 tokens that use a StableSwap equation, and contain tokens of similar value. For example, DAI/USDC/USDT, and WBTC/renBTC/sBTC

Pools that are coming soon:

* **MetaStable Pools** - A generalized Stable Pool that can hold "proportional" assets that are related in price but may slowly drift apart in price. Some example use cases are pools of (DAI/cDAI) and (StablePoolBPT/NewStableCoin)


# Invest Basics

Provide Liquidity to share

### How do I invest/provide liquidity?

First time here on Astar Network? Check out this [Get Started](https://app.gitbook.com/s/9V7sMmkp6s1Cgu0Jx2mn/getting-started) guide on how to prepare yourself to rock and roll on Astar ecosystem.

In short, you'll need:

* ASTR to pay gas fees
* ERC20 tokens
* An EVM address you can use with MetaMask wallet

### What are the pool filters?

You will see there are 3 types of pools: Featured, Stable, My Pool.

**Featured:** All  <mark style="color:red;">Aqua pools</mark> are featured pools, which users can stake in Farm for liquidity mining.

**Stable:** All <mark style="color:blue;">Stable pools</mark> are composed with softly pegged tokens with equally distributed pool weight.

**My Pool:** All pools that you have provided liquidity into can be found in My Pool, for quick portfolio overview.

![](/files/QTP5cAgKRJQWy9EoYbzs)

### What are the benefits of providing liquidity?

Starfish Liquidity Providers (LPs) collect delegated fees on each swap. The more interactions with your pool, the more swap fees you will earn, growing the size of your investment over time.

In addition, Featured Pools are eligible for [farming](broken://pages/rcHKvC0i2UmaGTcYSJhO) dual or single token reward, with one of the rewards in SEAN.

To read more about fees, click [here](/concepts/fees).


# Invest - Provide Liquidity

Starfish users can add liquidity to public pools and earn a fraction of any fees it generates.

There are 3 ways to provide liquidity / invest in Starfish pools:

1. Single Token Investment
2. Match the Pool Makeup
3. Unmatched Pool Makeup

### Single Token Investment

Investing one-sided liquidity means that you can provide one token to a multi-token pool or two token pool. Starfish will automatically swap your provided token to the underlying assets as if you would swap them and then provide liquidity. Note that therefore, you will experience price impact, which shows how much of your investment value is affected by swap fees. If the amount is large, it is advisable to invest in more than one token, or swap tokens yourself.&#x20;

#### Advantage of Single Token Investment

* Enabling single-token exposure when providing liquidity, instead of requiring exposure to additional reserve assets.
* Reduces friction for token communities and allows both teams and holders to build and benefit from deeper, permissionless liquidity.

Let's take the USDT/USDC/BUSD stablecoin pool as an example, and we only invest USDT in this pool.

1. Click on the pool you wish to provide liquidity into, and click the **Invest** button under the "My Investment" panel to start investing.

![](/files/sB7GU2AlkSrNJircq2b3)

2\. Enter the the amount of USDT you wish to invest.

![](/files/dKCnQQAYAR1MInZbRH0I)

3\. Click **Preview Invest** to final confirm your Invest amount. If you are okay with the amount and price impact, click **Confirm Invest** to continue with the transaction.&#x20;

4\. You can click the **Approve**, allow USDT to be used in this transaction and **Confirm** it in MetaMask.

5\. After the transaction went through, you can see your new investment balance under this pool!

![](/files/hXGeM3bQS3kOuMSGZHyV)

### Provide Liquidity with Matched the Pool Makeup

Providing liquidity to a pool with all underlying assets is very similar to providing liquidity with only one asset. The key difference is that you will provide liquidity for all assets and therefore have a very low to no price impact. There is only no price impact when your tokens exactly match the pool ratios.

In the following example, we invest 100 USDT, 100 USDC, 100 wBUSD in Stable 3 Pool.

1. Enter the amount of one of the tokens you wish to invest, say 100 USDT, then turn on the **Optimize Investment** button to auto update amount of remaining tokens needed for investment.

![](/files/2yuyidL5A1gOSVJSDMXe)

2\. After turning on the **Optimize Investment** button, you can see that other underlying tokens needed are displayed according to their weight and current spot price of this pool. Price impact will be updated (closer to 0%) as the invested amount is matching the pool weight.

![](/files/c6W21XkJopvKyQhy25gV)

3\. Click **Preview Invest** to final confirm your Invest amount. If you are okay with the amount and price impact, click **Confirm Invest** to continue with the transaction.&#x20;

4\. Since you're investing 3 tokens for this pool, you'll have to **Approve on MetaMask for 3 tokens**  before clicking **Confirm** to go through the transaction.

![](/files/IT361SZSkedex1bjouDf)

### Provide Liquidity with Unmatched Pool Makeup

Unlike providing liquidity in Uniswap, and Curve, you can invest tokens that do not match with the pool weight setup percentage.&#x20;

Take a look at this example, we invest 100 USDT, 50 USDC, 50 wBUSD in in Stable 3 Pool. The pool weight of this pool is 33.3% for each token, but according to the investment ratio, it is disproportionate to the pool weight.&#x20;

You can continue to provide liquidity in this disproportionate ratio, by clicking **Preview Invest**, and confirm your transaction by clicking **Confirm Invest** and **Confirm** in MetaMask.

![](/files/38r3qUpseAWnsyTOW8M2)

After liquidity is added, you'll see that your investment balance of underlying tokens is under proportionate amount with the price impact taken into account.

![](/files/nTTogpTkFRpNmp5uZD7J)


# Withdraw - Remove Liquidity

Withdraw liquidity to realise your split of trade fees

Starfish allows user to withdraw their investments from liquidity pools in two means.

* Proportional Withdrawal
* Single Sided Withdrawal

{% hint style="info" %}
**Maximum Swap In/Out Ratio - 0.3**

A maximum swap in ratio of 0.3 means a user can only swap in less than 30% of the current balance of `tokenIn` for a given pool, or swap out less than 30% of the current balance of `tokenOut.`

This means if user execute a single sided withdrawal, only less than 30% of the single token would be withdrawn.
{% endhint %}

### How does proportional withdrawal work?

Proportional withdrawal is just like removing liquidity from any other AMM protocols, you can redeem all underlying tokens of the pool with respect to the pool weight and the amount of Starfish Pool Token (SPT) you have.&#x20;

Assume that you have provided liquidity to the following pool, with underlying token balance of 100 USDT, 100 USDC, 100 wBUSD. And at this moment, you would like to remove liquidity and get back all underlying tokens, i.e. 100 USDT, 100 USDC, 100 wBUSD.

1. Click **Withdraw** button to start removing liquidity of this pool.

![](/files/f388sRgPLHPbynTUinM9)

&#x20;2\. Under the Token dropdown, it's by default chosen **All**, meaning you are doing proportionate withdrawal. You can click the **MAX** button next to Balance to burn your SPT to redeem all underlying tokens.

![](/files/iGAvZH7FDSgl02U1Z84U)

3\. Click **Preview Withdraw**, to review the final underlying tokens to be received with the input SPT for withdraw. You can refresh the pool, by clicking the "Reload" button on the top right corner. If the final amount looks okay to you, click **Confirm Withdraw**, and **Confirm** transaction on MetaMask.

![](/files/b5zkw2YoHOofSef2B6XH)

### How does single sided withdrawal work?

Single Sided withdrawals allow users to withdraw from a pool in the form of only one of the assets. A price impact due to the shift of the balance of the tokens will be accounted in this scenario.

1. To choose single sided token withdrawal, click on the token dropdown, and choose the token you wish to redeem. Say you want to redeem as USDT only, choose USDT token in the popup.

![](/files/VtWYQou6ZHzp0ZDtjCDx)

2\. If you wish to redeem maximum amount of USDT in terms of SPT you hold, click **MAX** button and you will see the corresponding price impact you are going to experience based on the amount entered.

![](/files/0HmEgtOqY97Orfybtcxp)

3\. Click **Preview Withdraw** if you want to continue with the withdraw amount. You are advised to look at the Price Impact and click the "Refresh" button to see the latest USDT amount you can redeem. Click **Confirm Withdraw** to continue with the withdrawal transaction.

![](/files/HqKDJcfDvJRMuOpW5ByS)

4\. After the transaction goes through, you'll see the updated **My Investment** balance, and more USDT in your wallet!


# Create Pool

Create pool is coming soon!&#x20;

At this stage, Starfish would be creating various types of liquidity pools. Later on, pool creation would be available to y'all for forming diverse investment strategies.


# DOT Liquid Staking

Stake DOT to earn sDOT and rewards

### What is Liquid Staking?

Stake DOT and receive sDOT. Yield daily staking rewards and put your sDOT to DeFi to work across the Polkadot and Astar ecosystems.

### What's the problem of nominating your DOT on Polkadot relay chain?

Nominating on validators to earn DOT reward on Polkadot relay-chain locks one’s assets in one validator for a long time and what to expect is a fixed, predetermined staking reward in return. This limits the opportunities of generating higher returns on those assets from the DeFi ecosystem, since your asset is locked for a month where you could have utilize this asset fully on other DeFi protocols for yield-farming. If you’ve staked all of your DOTs, you can’t invest or trade in more profitable asset pairs on DEXs and exchanges.

In traditional Polkadot staking a user has to perform several steps manually:

* Create a Stash Account and bond DOT to it;
* Nominate validators;
* Monitor validator's yield to maximize profit.

Staking on Polkadot requires expert knowledge, the main being the fact that slashing can get very severe if the staking is managed improperly.

### Why stake your DOT on Starfish?

Liquid staking allows using the `sDOT` in other trading or investing opportunities to let the user get the best of both worlds - a reward on your staked assets, as well as the returns from new trading/investing opportunities. Liquid staking introduces various fundamental benefits by:

* Making staking process simple - no need to worry about unstable nomination reward
* No Minimum DOT requirement - no worries on staking small deposit while nomination requires minimum stake amount
* Immediate appreciation — you start earning from the pool from the moment of deposit
* Maximise Earning - you can use sDOT on DEXs to trade, yield-farm and more&#x20;

### How does DOT Liquid Staking work?

When staking with Starfish, users receive sDOT tokens on a 1:1 basis representing their staked DOT.&#x20;

sDOT is a rebasing that is pegged 1:1 to its DOT. Users can mint sDOT in 1:1 ratio of DOT by staking their own DOTs through our system. After minting any holder of sDOTs will get rewards automatically by increasing the sDOTs balance. Users also can unstake and claim their DOT tokens back in two ways:

* By swapping sDOTs to Astar EVM DOTs on Starfish AMM, and potentially other AMMs
* An average of 28-30 days of unbonding period for unstaking sDOT

### sDOT Token Utility

With Starfish as the main DEX platform to yield farm and other star protocols on Astar ecosystem as extended sDOT usage, sDOT will become a reward earning rebasing token that can be used as collateral for borrowing.

* **Trade** - AMM swap of sDOT token on Starfish balancer pools, where Meta-stable pool of DOT - sDOT tokens will be created for low slippage swapping and liquidity investment to earn swap fees
* **Provide Liquidity (SPT)** - sDOT can be paired with tokens like $SEAN, $ASTR, and $DOT to yield farm dual token rewards on Starfish
* **Farm** - stake SPT that has sDOT as one of the pair token to yield-farm
* **Hodl** - Users can simply hold sDOT to enjoy staking without having income events triggered on-chain while staking, earn sDOT to redeem more DOT
* (Soon) Mint stablecoins - use sDOT token as collateral to mint stablecoin BAI, and possibly other stablecoins on polkadot ecosystem
* (Soon) Earn deposit APR - deposit sDOT on Starfish NFT-Fi Reserves to earn yields as a lender

### APR Formula

The staking APR is calculated dynamically and fluctuates based on the node APY and the individual node fee. The formula is as follows:&#x20;

* **sDOT APR** = Node Staking APR \* (1- node fee) \* (1- Starfish fee)
* **wASTR APR** = User's sDOT wallet balance / Total Issued sDOT \* Total ASTR Reward

The sum of the above 2 APR would be the final APR user gets by staking Astar EVM DOT on Starfish DOT Liquid Staking.

### Reward Fee

Reward fee is set at **9%** of the net staker rewards. The node APY and the node fee changes from node to node.

Assuming a 16.5% staking APR, and a 9% Starfish fee, the final APR will be 14.71%.

16.5% \* (1-9%) = 15.015% APR

The staking pool distributes 9% of the net staking reward by minting a proportional amount of the sDOT: **5% goes to node operators** and **4% to the Starfish treasury**. The remaining 91% of net staking rewards go to sDOT holders.

### Transaction Fee

This fee applies to the both relay chain side and parachain side for polkadot native and parachain transaction fees. It's set at 0.035 DOT for now according to the parachain and relaychain's gas fee.


# DOT XCM Transfer

Don't have DOT tokens yet? Transfer your DOT tokens from polkadot chain to Astar EVM via Astar Portal.

### Buy DOT on CEX

You can buy DOT from the following exchanges:

* Binance
* FTX
* Kraken
* Coinbase
* Bitfinex
* OKX
* MEXC
* Huobi Global
* Crypto.com
* Gate.io
* Bybit, and more

Most of the CEX supports withdrawal in <mark style="color:red;">Polkadot address</mark> only, please make sure the Polkadot.js wallet address is the one that supports Polkadot Relay Chain.

![](/files/xlDN3q8CjzpAj7qhbq78)

### Transfer DOT from Polkadot Native to Astar EVM

To transfer your DOT to Astar EVM, you can click this link to [Astar Portal's asset page](https://portal.astar.network/#/assets), and click **XCM** on DOT.

<figure><img src="/files/bSb5PXOYtFw0KGKvqS4w" alt=""><figcaption></figcaption></figure>

For a throughout XCM Transfer of DOT from Polkadot native to Astar EVM, you can have a look at this Astar XCM Transactions guide:

{% embed url="<https://docs.astar.network/docs/xcm/using-xcm/xcm-transactions>" %}

Once you have XCM transferred your DOT, you will see your MetaMask wallet balance in DOT. If you do not see that, you can import token with the following token address:

```
0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF
```


# Stake DOT

Earn rewards while you stake your DOT tokens.

Stake DOT to earn sDOT and wASTR reward

### How to Stake DOT with Starfish

The process for staking DOT with Starfish is "kandan". Go to **Stake** page, and click **DOT Liquid Staking** card to start staking!

![](/files/qNm3YlDj4vH0CfLoN4Jy)

After getting into the card, you will see the info about DOT Liquid Staking, Stake and Unstake Panel. You can check the sDOT APR, wASTR APR, Total Staked DOT amount and your staked DOT share of pool %.

Input your stake amount and click **Preview Order** to continue with staking.

<figure><img src="/files/bYXq0sR3ra1pGeeHs4SZ" alt=""><figcaption></figcaption></figure>

After clicking **Preview Order**, have a check on the final sDOT amount you are receiving. If everything's alright, click **Approve DOT & Confirm Stake** to start confirming MetaMask transactions on token approval and stake transaction.

You need to have enough ASTR in your Metamask account to perform a stake operation. ASTR is Astar Network’s native token.

<figure><img src="/files/hcKUX8cr80zwoyhNzuSZ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Approve DOT is approving exact amount of DOT you wish to stake. You need to approve DOT next time you stake again.
{% endhint %}

{% hint style="info" %}
Pay attention to the Transaction Fee at the Preview. You need to pay 0.035 DOT for relay-chain and parachain transaction fees upfront the nomination.
{% endhint %}

Once you have approved and confirm the stake transaction on MetaMask, you'll see update on **Your sDOT**. Your sDOT balance will start accumulating after it's bonded to the next epoch for relay-chain DOT nomination.

<figure><img src="/files/sDtbUsrUoeYbhP2IEi3S" alt=""><figcaption></figcaption></figure>


# Unstake sDOT

Unstake sDOT to claim DOT

To unstake your sDOT, click **Unstake** on the staking panel on the right hand side, and input the sDOT amount you wish to unstake. Click **Preview Order** to see the DOT amount to be claimed.

<figure><img src="/files/0fSrysKveoYvr1eGHTp3" alt=""><figcaption></figcaption></figure>

The amount of sDOT unstaked will be equal to the amount of DOT to be claimed after unbonding ends, minus the Transaction Fee which is collected to pay for relay-chain and parachain fees. Click **Confirm Unstake** and confirm the MetaMask transaction.

<figure><img src="/files/XGgtmjjeX1UMGhYxFH2S" alt=""><figcaption></figcaption></figure>

After the sDOT unstake is done, you will see the updated staked DOT (sDOT) balance and **Pending DOT**. You can come back and claim DOT after 30 days.

<figure><img src="/files/62QpbjFnxrbNVu1RRH9g" alt=""><figcaption></figcaption></figure>


# Claim DOT & ASTR

### Claim DOT

After you have unstaked sDOT, you are able to claim the Claimable DOT. Click **Claim** to start claiming!

{% hint style="info" %}
You can claim your DOT after the unbonding period ends (\~ 28 - 30 days).
{% endhint %}

### Claim ASTR

Staking DOT on Starfish earns you extra reward in ASTR! Click **Harvest** to start harvesting your ASTR.

{% hint style="info" %}
ASTR reward is instantly harvestable, with no lock up and vesting.
{% endhint %}

<figure><img src="/files/KXtkGJDDgAHIktBrJYzM" alt=""><figcaption></figcaption></figure>


# Stake

### Modular Staking Pools

![From XS-brain to XL-brain SEAN](/files/XouI0c0RGBmZcE1cuDmb)

The SEAN Ecosystem provides users with 'Modular Staking'. Offering scope and depth of utility to the SEAN Token.

* Stake SEAN to earn SEAN: Limited time (40 days) reward offer to early supporters
* Stake SEAN into cSEAN: Earn Stablecoin rewards by sharing revenue generated on the platform
* Stake SEAN into sSEAN: Unlock the ability to participate in Seabed Launch - Token Offering and NFT Auction platform
* Stake DOT into DOT Liquid Staking: Earn sDOT and ASTR as reward

### Want to learn more about the Staking Options?

{% content-ref url="/pages/LvvdEanRGXgD5WJuT5K3" %}
[Broken mention](broken://pages/LvvdEanRGXgD5WJuT5K3)
{% endcontent-ref %}

{% content-ref url="/pages/08RMW2igOhEXAY6EMknu" %}
[Broken mention](broken://pages/08RMW2igOhEXAY6EMknu)
{% endcontent-ref %}

{% content-ref url="/pages/94jXDX82N2IomfgScK53" %}
[Broken mention](broken://pages/94jXDX82N2IomfgScK53)
{% endcontent-ref %}


# Pre-Staking

Congrats y'all who have your SEAN in hand! You can stake your $SEAN in our Pre-Staking pool to earn **limited-offer SEAN reward** for 60 days.

### What is Pre-Staking?

Pre-Staking is a special, limited-time event for early SEAN holders to enjoy earning SEAN rewards by lock-up staking for 60 days, to have a chance to earn ultra high reward APY in the token y'all love - SEAN!

### Why y'all should get more SEAN??&#x20;

Let's remind ourselves the mighty utilities SEAN token [here](/get-started/usdsean-utility).

### How to stake SEAN?

1. Go to app.starfish.finance and connect your MetaMask wallet that hodls SEAN!
2. Once connected, click on **Stake**, choose **SEAN Pre-Staking** to start your SEAN earning journey!

<figure><img src="/files/SQn7Bim0x7v008WK1Ly4" alt=""><figcaption></figcaption></figure>

3\. Input the amount of SEAN you want to stake, to get things easy, just click the **MAX** button to maximize your SEAN reward. Then click **Confirm Stake** and confirm your MetaMask popup transaction.&#x20;

<figure><img src="/files/8fF9bTFxAxO9NzL3MKCZ" alt=""><figcaption></figcaption></figure>

4\. Voilà! Your SEAN is successfully staked in Pre-Staking pool! You can now see that your SEAN is safely locked. Claiming of SEAN reward will be available 60 days after the Pre-Staking. You can come back then to claim your SEAN reward.

<figure><img src="/files/Pphp5Lku3gmwsEJnVcsZ" alt=""><figcaption></figcaption></figure>

### How to Claim SEAN?

After the Pre-staking event ends, the staking pool will be updated as cSEAN staking pool. Those who have staked SEAN during Pre-staking event will be able to claim their SEAN rewards in cSEAN staking pool.

1. Click on cSEAN card

<figure><img src="/files/hDz7Ri0wOyNeWSvfJMYF" alt=""><figcaption></figcaption></figure>

2\. You can find this box **Harvest Pre-staking SEAN Reward** and click **Harvest** to collect vested SEAN rewards (4% of SEAN rewards are harvestable instantly, 96% of the rewards are vested weekly for the next 6 months)

<figure><img src="/files/w5AbFaMmXyXdnC3zySR7" alt=""><figcaption></figcaption></figure>


# cSEAN

Stake SEAN in cSEAN staking pool to share splits of protocol revenue in stablecoin.

### What is cSEAN?

cSEAN is one of the Staking options that distribute users with share of protocol trading fees in form of Stablecoin.

* Stake SEAN into cSEAN and earn Stablecoin - **USDC**

### Harvest your share of Protocol Revenues

For every swap on Starfish, 50% of the delegated fee is charged as protocol trading fee and accrued by the protocol. This is then converted into a Stablecoin, and then distributed to the cSEAN Pool every 24 hours.

* Staking into cSEAN rewards you with a share of [Featured Pools](broken://pages/YckW4lmDF5ZPmU9gLBo2#what-are-the-pool-filters)' revenue generated

### How to Stake into cSEAN?

1. Head over to the Staking page
2. Select cSEAN card

![](/files/KKGhB62Z7vJmh82IhLPy)

3\. Stake your SEAN, click **Preview Order**, then click **Confirm Stake** to continue with the transaction (you will need to approve and confirm the transaction in your wallet)

![](/files/tvUxyJgFxEFcgKZSIgUh)

![](/files/oIiMgtt6IGjfDhGJCm23)

4\. Click **Harvest** when you wish to claim Rewards (you can accumulate the rewards for harvesting)

![](/files/bsxIEZAzB31BesX6Au5n)

5\. Congratulation, you have now harvested Stablecoin rewards!

{% hint style="info" %}
cSEAN is not a Token/Receipt therefore there is no Contract ID for cSEAN.
{% endhint %}

### Withdrawal Fee

* Unstaking from cSEAN may come with a fee
* The fee can scale up to 3% Max, depending on the number of SEAN already Staked
* The 3% Fee is taken from the SEAN token that you withdraw from the cSEAN Pool
* Currently any deposit fee taken will be sent to the Treasury&#x20;

### How much do I earn?

cSEAN Stakers receive rewards proportional to their share of the cSEAN vault.

{% hint style="info" %}
**Calculation:** userRewardRate = userSEAN / totalSEAN \* cSEANRewardRate.
{% endhint %}


# sSEAN

sSEAN tokens allow you to participate in token offerings and NFT auctions of liquidated NFTs

### What is sSEAN?

sSEAN is a credit used to enter Seabed Launches.

Depositing sSEAN into the Seabed Launch, will unlock the gateway to deposit your USDC into Token Offerings and bidding currency in NFT Auctions.

sSEAN is a non-transferrable and non-tradable token.

Once you have deposited sSEAN to gain access to a Token Offering or NFT Auction, it is burned on use.

### How to get sSEAN Tokens?

Stake SEAN into the sSEAN Staking Pool (coming in 2023).

### The sSEAN Token

* Accrue as much sSEAN as you want
* sSEAN is stored in your wallet when you claim it
* sSEAN can be used at any time, for any Launch event
* There is no value attached to sSEAN
* sSEAN is non-transferable and cannot be sent to other wallets
* You cannot buy sSEAN on any platform, it must be accrued from Staking
* sSEAN has an infinite supply and is burned on use when entering a Launch

### Why stake sSEAN?

{% content-ref url="/pages/0e3A3I8TB6TD04lX9tU3" %}
[Broken mention](broken://pages/0e3A3I8TB6TD04lX9tU3)
{% endcontent-ref %}

{% content-ref url="/pages/LWXMn1FsAJwA2NuynvB2" %}
[Broken mention](broken://pages/LWXMn1FsAJwA2NuynvB2)
{% endcontent-ref %}

#### <mark style="color:purple;">more sSEAN mechanism details is coming soon!</mark>


# Farm

Stay tuned with our Farm updates!

SEAN token can be obtained through staking in a pre-staking event (a limited time offer before the AMM launch), and LP farming on Starfish Farms.

There will be SEAN token allocated to community growth, liquidity and ecosystem. The Starfish team regards this allocation as user acquisition cost upon the launch of Starfish. Whilst the SEAN token is a ERC-20 token, they are EVM compatible and hence, they can all be deposited by users in third party pools on Astar network and even other EVM compatible chains such as Balancer, Uniswap, and Curve on Ethereum chain to facilitate yield staking.

![](https://lh3.googleusercontent.com/TF2zAcFei-ukyR8y4emSBDOFS1dp7jsR2V99OSj7oYgq6UCY3-PdMejHJJxT5b46KqwVsA2dqRBTlMvw1or3-XD0j0c-UJ3ixNACB3DhB8E-Z1u-fd-u-b9kB5kT49UtHE1sEki_v3IFzz71Dw)


# NFT-Fi

Starfish is the first NFT financing solution on Astar network.

### What is NFT-Fi to Starfish?

The boom of NFT in the second half of 2021 has secured a high level of total value locked (TVL) in collectibles based on the NFT technology. However, this TVL is not liquid, and NFT holders have limited access to unleash liquidity locked in their NFTs.  The Starfish fam acknowledges that there is a high and increasing demand for NFT-based lending and borrowing.

Starfish Finance vision is to create an unprecedented NFT-Fi model for users to experience cross-chain NFT liquidity in a permissionless and trustless manner. We focus a lot on building an effective pricing mechanisms, secured custody solutions, together with insurance plans, since we care loads about our SEAN frens' properties.

We truly believe in the potential in NFT, where most of the real-world assets becomes a virtual asset on metaverse, NFT-Fi will naturally grow into a towering tree.


# Collateral Ratio

For the whitelisted NFT collections, they will have different collateral ratios based on the volatility and trading activity of the collection. If the collection has a lower volatility, and high trading activity in the market, the corresponding collateral ratio will be higher.

| **NFT as Collateral** | **LTV (Collateral Ratio)** | **Margin Call** | **Liquidation Call** |
| --------------------- | -------------------------- | --------------- | -------------------- |
| CryptoPunks           | 40%                        | HF < 2          | HF < 1               |
| BAYC                  | 40%                        | HF < 2          | HF < 1               |
| MAYC                  | 30%                        | HF < 2          | HF < 1               |
| Doodles               | 30%                        | HF < 2          | HF < 1               |
| CLONE X               | 30%                        | HF < 2          | HF < 1               |
| Azuki                 | 30%                        | HF < 2          | HF < 1               |


# NFT as Collateral

Starfish Finance is a multi-chain peer-to-pool NFT financing protocol. Lenders provide liquidity in forms of stablecoins, ETH, and ASTR to the Reserve Vault to earn interest, while NFT holders are able to receive loans through staking NFT as collateral.

The Starfish protocol enables NFT assets from Astar network and EVM compatible chains to be locked in NFT collections based escrow contracts, with a maximum of three months to realize NFT loans.

* Initiate an instant NFT loan contract to borrow stablecoins, ETH and ASTR on Astar network
* Maintain NFT collateral ratio by repaying borrowed asset anytime
* Retrieve the NFT when paying off the NFT loan and its relevant interest

![](/files/qFb2lvrzmyKTlFwXoUYx)

### Cross-chain NFT as Collateral

Other than Astar native-chain NFT collections and IP brands, Starfish also supports bluechip NFTs from major EVM networks as collateral to achieve NFT financing.

### So...Do I need to bridge Ethereum NFT to Astar network?

No, you do not need to bridge from your NFT native network to Astar network. We make use of [Celer's IM framework](https://im-docs.celer.network/developer/celer-im-overview) to update cross-chain price feed data, while your NFT can be safely locked on native chain.


# Borrower

Before staking NFT in Starfish protocol for loans, the following considerations should be taken into account:

* Acknowledge the collateral ratio of the NFT collection
* Loans will be distributed in various assets, namely, USDC, USDT, DAI, ETH, ASTR and more.
* Acknowledge the interest rate & payment currency (based on loan currency)
* Liquidation mechanism

Once users are familiar with the parameters and conditions of creating a NFT loan, they can proceed with the following steps to borrow assets by staking their NFTs:

1. Deposit NFT as Collateral. (Borrowers can only deposit whitelisted NFT for loans)
2. Verify and lock deposited NFT in NFT collection escrow contract, which is secured and locked.
3. Choose the type of token to borrow and acknowledge
4. Pass through NFT oracle to get the latest floor price and determine the amount of tokens to be borrowed.
5. Receive NFT loan in stablecoins or ETH or ASTR.
6. Pays back debt (loan + borrow interest) to get back NFT staked.


# Lender

Lenders will be able to earn yields by providing liquidity in the Reserve Vault on Astar network.

The borrower's NFT collateral is locked in an NFT escrow contract. If the total debt exceeds the value of the collateral, user's NFT collateral is liquidated and moved to undergo auction. The auction price cannot be lower than the total debt. So the lender's principal will not be lost.


# Interest Rate Model

The interest rate model is used to manage liquidity risk through user incentivizes to support liquidity:

* When capital is available: low interest rates to encourage loans.
* When capital is scarce: high interest rates to encourage repayments for the loans and additional deposits.

Starfish uses the Jump Rate Model, which is an efficient measure to incentivise lenders to provide liquidity at times of high utilization. Liquidity risk materializes when utilization is high, in order to bring stability to interest rates, the interest rate curve is split into two slopes to cater Utilization rate when it approaches an optimal Uoptimal.

### Utilization Rate Model

The utilization ratio U for each market a unifies supply and demand ratio into a single variable:&#x20;

Ua = Ba / (Da + Ba)

Two interest rate slopes (Rslope1 and Rslope2), parameters of the system, are used to compute the variable interest rate: Rslope1 is used when U < Uoptimal and Rslope2 when U ≥ Uoptimal.

The interest rate It follows the model:&#x20;

If U < Uoptimal : I(t) = Io + Ua /Uoptimal ∗ Rslope1

If U ≥ Uoptimal : I(t) = Io + Rslope1 + (Ua− Uoptimal) / (1−Uoptimal) ∗ Rslope2

### Deposit APY Model

The borrow interest rates paid are distributed as yield for lenders who have deposited in the protocol, excluding a share of yields sent to the ecosystem reserve defined by the reserve factor. This interest rate is paid on the capital that is lent out then shared among all the liquidity providers. The deposit APY, Da, is:

Da = Ua ∗ Bt (1−It)

Ua : the utilisation ratio.

Ba : the variable borrow rate.

Rt : the reserve factor.

![](/files/BXp4uksdO8Koqm4zBntZ)

### Borrow APY Model

Ba = 5% + Ua ∗ 20%

![](/files/gZJdF9iEGwKwSrTjwaBF)

### Base Interest Rate 5%

| Utilization Rate(%) | Borrow Rate(%) | Deposit Rate(%) |
| ------------------- | -------------- | --------------- |
| 1                   | 5.12           | 0.04            |
| 5                   | 5.62           | 0.2             |
| 10                  | 6.23           | 0.44            |
| 15                  | 6.85           | 0.72            |
| 20                  | 7.46           | 1.04            |
| 25                  | 8.08           | 1.41            |
| 30                  | 8.69           | 1.82            |
| 35                  | 9.31           | 2.28            |
| 40                  | 9.92           | 2.78            |
| 45                  | 10.54          | 3.32            |
| 50                  | 11.15          | 3.9             |
| 55                  | 11.77          | 4.53            |
| 60                  | 12.38          | 5.2             |
| 65                  | 13             | 5.92            |
| 70                  | 27.29          | 13.37           |
| 75                  | 41.57          | 21.82           |
| 80                  | 55.86          | 31.28           |
| 85                  | 70.14          | 41.73           |
| 90                  | 84.43          | 53.19           |
| 95                  | 98.71          | 65.64           |
| 100                 | 113            | 79.1            |


# Reserve Factor

Each asset in the Starfish protocol has specific values related to their risk, which influences how they are supplied and borrowed. Each asset in the Reserve Vault has a designated Reserve Factor to safeguard against liquidation events.

Assets Reserve Factor:

USDC: 30%&#x20;

USDT: 30%&#x20;

DAI: 30%&#x20;

BAI: 30%&#x20;

wETH: 30%&#x20;

ASTR: 40%

GLMR: 40%

sDOT: 50%

The Reserve Factors will be evaluated regularly based on the asset’s volatility and market liquidity.


# Liquidation

The Starfish Protocol utilizes a scored Health Factor for loans. The formula is outlined below. When the Health Factor of an NFT loan is below 1, anyone can trigger a liquidation in terms of an NFT Auction.

To get a timely liquidation alert before the liquidation event actually happens, borrowers can update their account with their email address. When the Health Factor becomes less than 2 (Risky), borrowers will receive a potential liquidation alert.

![](https://lh3.googleusercontent.com/SEBlI4L0fz_O_4ajXzCWgcdidpV6hyRS4qB8GumGg7AEnB-a90peh1O3F1fR0su9tDY3_uJGitMbwc4UMoezL_1oV7BSh6k0iyIE20sPbDDAcgUWYUbdAv0yifx5eYii4ugrIXP2KC6J2f3hnQ)

### Health Factor

The definition for Health Factor:&#x20;

(Floor Price \* Liquidation Threshold) / Debt with Interests

![](https://lh4.googleusercontent.com/2qV9UPq0XehiSwotLBp28T8G9Jn2M0h1V-XAjPMpkvYixUyLwZ1bDEpQWMQ52tHz0dflZm0ryysTmD4-NtdIz4vZbRwjRAay_bxoUQ5bKTLpYnI_cE0DY4jimrhMLgezmoPTt3pPFyKJSZehHg)

### How can I avoid getting liquidated?

To avoid liquidation, you can increase your health factor by repaying part of your loan. It's always recommended to have a close look on your health factor and keep it high to avoid liquidation. Keeping your health factor above 2 gives you more of a margin to avoid liquidation.

Once your health factor is below 2, your NFT collateral will be listed on Health Factor Alert List, and you'll receive a notification on your NFT is "Risky" in being liquidated.

### Can I participate in the liquidations ecosystem?

At the beginning stage, Starfish protocol will be acting as the sole liquidator for all NFT positions that are with health factor below 1.&#x20;

Liquidations will be open to all after the our liquidation and auction features becomes stable and widely used.


# Whitelisting NFT

Before adding a NFT to the NFT Vault for loans, Starfish will screen out NFTs that are not qualified as NFT collateral. To ensure the NFT will add more value than risk, only NFTs with a great reputation and significant community are considered.

At the beginning stage, Bored Ape Yacht Club, Doodles, Meebits, Cool Cats, CloneX and Azuki can be used as collateral for NFT loans on Ethereum network.

{% hint style="info" %}
Whitelisted NFT collections are subject to change.
{% endhint %}

After StarfishDAO is formed, SEAN holders who have staked their SEAN to Starfish protocol would receive veSEAN as a voting right to vote on whitelisting new NFT projects cross-chains to receive loans.


# NFT Price Feeds

Price feeds for the collateralized NFTs are determined by the floor price of NFT collection across multiple NFT marketplaces.

In the case of NFTs from Ethereum chain, price feed from NFT Aggregator, collecting floor prices from dominant NFT marketplaces from Astar and Ethereum chains, including TofuNFT and OpenSea. The collateral value is denominated in Ethereum on Starfish for the NFTs that are on Ethereum chain.

In the future, Starfish DAO will allow the SEAN stakers to manage the NFT class criteria in deciding the floor price algorithm.


# NFT Tier Matrix

There are more than 80,300 NFT projects on the Ethereum chain alone, and less than 0.1% percent of the projects are considered blue chips. In order to come up with a reasonable and trustable floor price algorithm, there should be a NFT Tier Matrix to categorize different types of NFT projects into classes, based on the following factors: volatility, trading volume, average trading activity, community size, team reputation, NFT utility, and project roadmap delivery.

Ultimately, NFT projects will be classified into 3 Tiers: Blue chips NFT, Average NFT, and Volatile NFT.


# Seabed Launch

Seabed is where majestic things happen!

### What is Seabed Launch?

Seabed Launch is where you grasp all the fantastic opportunities in Starfish Finance. It's like a super launchpad where you can subscribe to new token offerings (IDOs), private deals (Pre-IDOs), and getting liquidated NFT at sale (NFT Auction)!&#x20;

### How to get my ticket to join these good deals on Seabed?

There will be a staking portal where you can stake your SEAN token to redeem for sSEAN (Seabed SEAN) as an entry ticket to all our awesome offerings and NFT auctions.&#x20;

More info coming soon!


# Token Offerings

Seabed offers two types of Token Offerings, namely IDO and Pre-IDO

### What is IDO?

An initial DEX offering, or IDO, is a new and exciting type of decentralized and permissionless crowdfunding platform, which is opening up a new way of fundraising in the crypto space.&#x20;

If a project is launching an IDO, it means the project is launching a coin or token via a decentralized liquidity exchange. This is a type of crypto asset exchange that depends on liquidity pools where traders can swap tokens, including crypto coins and stablecoins. For instance, USDT/ETH is a liquidity pair.

### What is Pre-IDO?

Pre-IDO refers to token offerings before the actual initial DEX offering (IDO) takes place. It is an innovative concept that allows DeFi users to get exposure to new and upcoming crypto projects. On the other hand, a pre-IDO allows DeFi projects to increase their fundraising capability regardless of the market movements.


# NFT Auction

The NFT Auction allows <mark style="color:blue;">**SEAN stakers**</mark> to have the <mark style="color:blue;">**access to bid on NFTs that are liquidated**</mark>.

#### More details about the NFT auction mechanism will be revealed very soon!&#x20;


# StarfishDAO

Coming soon in 2022 Q4

Starfish will begin with centralized control of the protocol (such as whitelisting NFT collections, yield farming pools to receive rewards, and interest rate model per asset), and over time, will transition to complete community and stakeholder control. Along the way through transition, we will closely listen to the advice and comments from our community, for valuable enhancement to be made.

After Starfish DAO is formed, SEAN holders can stake their SEAN token to our staking pool to receive veSEAN token, which grants them the right to suggest and vote on the following events:

1. which liquidity pools to have yield farming rewards.&#x20;
2. onboarding which NFT collection as collateral to support for borrowing assets and providing liquidity.&#x20;
3. protocol level parameters, development or enhancement.

The final StarfishDAO structure is still in brainstorm stage, SEAN fams are welcome to share your DAO ideas in our [Telegram](https://t.me/starfishfinanceofficial) and [Discord](https://discord.com/invite/8hDZuXQnsX).


# Fees

### What is trading fee?

Trading fee is a small percentage of the trade paid by traders to pool LPs, set by the pool creator or dynamically optimized by StarfishDAO. Additionally, StarfishDAO can vote to introduce a Protocol Trading Fee, which is a percentage of the Trading Fee.\
\
For instance, if a pool had a 1% fee, and governance introduced a 10% protocol fee - the total swap fee to the trader would remain at 1%, but now 0.9% would accrue to the pool's LPs, and 0.1% would accrue to the protocol fee collector contract.

All protocol fees are set to 50% at launch. After StarfishDAO is set up, SEAN holders can vote on protocol fees update.

### What are the fees for a trade?

Starfish Pools are extremely customizable, and each pool can have a different fee. It is up to the pool creator to decide how high the fees should be, ranging from 0.0001% to 10%. When using the Smart Order Router, the fees will always be taken into account when finding the best price.

### What happens to the protocol fees?

All protocol fees are kept in the ProtocolFeesCollector contract. It is up to Starfish’s governance to decide whether and how these fees are used.

The Protocol Fees Collector contract is deployed at Astar:&#x20;

| Network | Contract Address                           |
| ------- | ------------------------------------------ |
| Shibuya | 0x86E64D58281dC81c77C4b54C0771A9f66644E750 |

### How much do I pay for trade fees?

When there is a trade in a pool, the pool collects a trade fee. The trade fee is denominated in the input token.

{% hint style="info" %}
**Example:** Let's say Alice is swapping 100 USDC to SEAN in the USDC-SEAN pool with a delegated fee of 3%, the pool will keep 3 USDC (3% of USDC) and give her back an amount of SEAN worth 97 USDC.
{% endhint %}

### How do I get my share of trade fees?

As the pool collects fees, your **Starfish Pool Tokens (SPT) automatically collect fees** because they represent your **proportional share of the pool.**&#x20;

Let's say Alice, Bob, Charlie, and Daren all provide liquidity in the same pool starting out worth $100. After some time, it has earned many trade fees and is now worth $200. The pool itself grows while their proportional shares stay the same. They can experience the rise of value by exiting (withdrawing liquidity) to get back the underlying tokens.

| Person  | Proportional Share | Initial Value | Value After Trading |
| ------- | ------------------ | ------------- | ------------------- |
| Alice   | 50%                | $50           | $100                |
| Bob     | 30%                | $30           | $60                 |
| Charlie | 10%                | $10           | $20                 |
| Daren   | 10%                | $10           | $20                 |


# Math

## Overview

Different pool types utilize different underlying equations relevant to their specific use cases.


# Stable Math

First introduced by Curve, the Stableswap is a hybrid algorithm, to bring solution to the problems of slippage and fixed liquidity. The Stableswap hybrid combines both **Constant Product** and **Constant Sum** models, and the following chart shows the Stableswap algorithm in relation to constant product and constant sum invariants.

The *amplification parameter*, $$A$$, defines the degree to which the Stable Math curve approximates the Constant Product curve (when $$A=0$$), or the Constant Sum curve (when $$A\rightarrow \infty$$).&#x20;

![](/files/7JzAFQWa0GJ257j4ROn7)

* **Constant Sum:** When the liquidity pool portfolio is balanced, the algorithm functions as a Constant Sum formula; **x + y = k**. You can observe the StableSwap ***blue line*** staying close to the Constant Sum ***red line***, and the price is stable.
* **Constant Product:** As the liquidity pool portfolio becomes imbalanced, the StableSwap algorithm functions as a Constant Product formula; **x \* y = k**. You can observe the StableSwap ***blue line*** now resembling the Constant Product ***purple line***, and the price becoming expensive.

### Invariant

Since the Stable Math equation is quite complex, determining the invariant, $$D$$, is typically done iteratively.

$$
A \cdot n^n \cdot \sum{x\_i} +D = A \cdot D \cdot n^n + { \frac{D^{n+1}}{{n}^{n}\cdot \prod{x\_i} } }
$$

Where:

* $$n$$ is the number of tokens
* $$x\_i$$ is is balance of token $$i$$
* $$A$$ is the amplification parameter


# Weighted Math

Weighted Math is designed to allow for swaps between any assets whether or not they have any price correlation. Prices are determined by the pool balances, pool weights, and amounts of the tokens that are being swapped.

Weighted Math equation is a generalization of the $$x\*y=k$$ constant product formula recommended for Automated Market Makers (AMMs). Balancer's generalization accounts for cases with $$n \geq2$$ tokens as well as weightings that are not an even 50/50 split.&#x20;

As the price of each token changes, traders and arbitrageurs rebalance the pool by making swaps. This maintains the desired weighting of the value held by each token whilst collecting trading fees from the traders.

### Invariant

The value function $$V$$is defined as:

$$
V= \prod\_t B\_t^{W\_t}
$$

Where

* $$t$$ ranges over the tokens in the pool
* $$B\_t$$ is the balance of the token in the pool
* $$W\_t$$​is the normalized weight of the tokens, such that the sum of all normalized weights is 1.


# Contracts

{% hint style="warning" %}
DO NOT SEND YOUR TOKENS TO ANY OF THE BELOW CONTRACTS
{% endhint %}

Currently, our beta version is available on Shibuya testnet, the Astar mainnet version is live with Pre-staking of SEAN!&#x20;

Stay tuned for other product features.

{% tabs %}
{% tab title="Astar Mainnet" %}

| Contract     | Address                                    |
| ------------ | ------------------------------------------ |
| SeanStaking  | 0xa86dc743efBc24AF4c1FC5d150AaDb4DCF52c868 |
| {% endtab %} |                                            |

{% tab title="Shibuya Testnet" %}

| Contract            | Address                                    |
| ------------------- | ------------------------------------------ |
| Vault               | 0x772bccF2d4d41eD1366967ab55eD4c9651416bBc |
| StablePoolFactory   | 0x448775B16cD9aaA1fc1b9f6bd52BaEfE9ED913B0 |
| WeightedPoolFactory | 0x89BcD830A430335AEaF1add5783EE56F706a9eD5 |
| SeanStaking         | 0xbd0325da62D8edFcD603e15AEF5037Dd9D193ed3 |
| {% endtab %}        |                                            |
| {% endtabs %}       |                                            |

{% tabs %}
{% tab title="Token Contracts (Astar)" %}

| Token        | Address                                    |
| ------------ | ------------------------------------------ |
| SEAN         | 0xEe8138B3bd03905cF84aFE10cCD0dCcb820eE08E |
| {% endtab %} |                                            |

{% tab title="Tokens Contracts (Shibuya)" %}

| Token         | Address                                    |
| ------------- | ------------------------------------------ |
| SEAN          | 0x28C9444FA7D57957868A654cFe37049a6e8F3462 |
| wSBY          | 0x6dB7435C5c32E5af80eD5DFB613499A3A6CB1100 |
| wBTC          | 0x2512b3cE28377e99be6bEF8A6CA67F982990B3BE |
| wETH          | 0x54ca34700d4F164fBA0adbf418e1EDbEeDE18C26 |
| USDT          | 0x9Da35B93ba6c5b6bE801464F7B7AF7704CF2D5C9 |
| USDC          | 0x3cD13bB5dB6A5809A33235f5DB24963Fa2dC4F3D |
| BUSD          | 0x8E2882fd1C059B30648A8e2767e769F7029D3893 |
| {% endtab %}  |                                            |
| {% endtabs %} |                                            |


