Skip to content

White-Whale-Defi-Platform/alliance-staking

Repository files navigation

Migaloo Staking Frontend

Installation

Clone alliance-staking

  git clone https://github.com/White-Whale-Defi-Platform/alliance-staking.git
  cd alliance-staking
  npm install

Run locally

  npm run dev

How to add your Token for Restaking

1. Add Token to assetlist of the chain registry on migaloo: https://github.com/cosmos/chain-registry/tree/master/migaloo

2. Get Token approved: https://daodao.zone/dao/migaloo1pxuqr7je9h7slchdsgz5ufc3kklrevyfnxmq0dkjru5k6e6mdm2sw23hfz
3. Fork this repo.

4. Apply changes on the following files:
    public/mainnet/tokens.json Add Token with infos from registry (Used for Price calculation):

        {
            "name": "RAC",
            "symbol": "RAC",
            "contract": "migaloo1crsvm4qddplxhag29nd2zyw6k6jzh06hlcctya4ynfvuhhu3yt4q0pn4t3" // SWAP CONTRACT ADDRESS,
            "chainId": "migaloo-1",
            "basedOn": "Whale" // paired with this address, 
            "denom": "factory/migaloo1eqntnl6tzcj9h86psg4y4h6hh05g2h9nj8e09l/urac",
            "decimals": 6,
            "tabType": "restaking",
            "logoURI": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/rac.svg"
        }

    public/mainnet/white_listed_ecosystem_token_info.json Add Token with infos from registry: 

        {
            "chainId": "migaloo-1",
            "token_address": "factory/migaloo1eqntnl6tzcj9h86psg4y4h6hh05g2h9nj8e09l/urac",
            "symbol": "RAC",
            "name": "RAC",
            "decimals": 6,
            "logoURI": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/rac.svg",
            "tags": ["native"],
            "denom": "factory/migaloo1eqntnl6tzcj9h86psg4y4h6hh05g2h9nj8e09l/urac",
            "native": true,
            "color": "#009076"
        }

5. Create pull request on this repo

License

MIT