Welcome to StaFiHub
  • StaFiHub Introduction
    • Tokenomics
  • Chain
    • Getting started
      • Introduction
      • Install
      • Join The Mainnet
      • Join The Public Testnet
      • Validator FAQ
    • Concepts
      • General Concepts
      • rToken Concepts
      • Genesis Parameters
    • Cli Client
      • Introduction
      • Bank
      • Debug
      • Keys
      • Gov
      • Ledger
      • rBank
      • Relayers
      • rVote
      • Staking
    • gRPC, REST, and Tendermint Endpoints
    • Resources
      • StaFiHub Validator Program
  • rToken
    • Integrate rToken
      • Integrating with Interchain Accounts
      • Integrating with Multisig Accounts
      • Integrate into rToken App
    • Delegation Algorithm
    • Liquidity Grant Program
    • rATOM Migration
  • User
    • Join Public Testnet
      • Testing Guide
    • User Guide
      • rToken Dapp Guide
      • Get FIS Token on StaFiHub
      • Claim Airdropped FIS Token
      • How to get a StaFiHub Address
      • rPool Guide For MintDrop Programs
      • rATOM V1 Migration
      • StaFiHub rBridge Guide
      • IBC Transfer With Keplr Wallet
      • Swap ICS20 FIS to ERC20 FIS
    • FAQ
Powered by GitBook
On this page
  • StaFiHub App
  • How to integrate?
  1. rToken
  2. Integrate rToken

Integrate into rToken App

PreviousIntegrating with Multisig AccountsNextDelegation Algorithm

Last updated 2 years ago

StaFiHub App

The front-end interactive DApp, on which users can stake the target chain token, unbond the token, participate in DEX transactions, etc. StaFiHub holds the app that integrates all rTokens, and you can easily add a new chain configuration to integrate a new rToken.

How to integrate?

Make your PR to .

Add your chain config like .

config example:

{
  "chainName": "Cosmos",
  "chainId": "cosmoshub-4",
  "displayHubName": "CosmosHub",
  "rpc": "xxx",
  "restEndpoint": "xxx",
  "denom": "uatom",
  "coinDenom": "ATOM",
  "decimals": 6,
  "bech32Config": {
    "bech32PrefixAccAddr": "cosmos",
    "bech32PrefixAccPub": "cosmospub",
    "bech32PrefixValAddr": "cosmosvaloper",
    "bech32PrefixValPub": "cosmosvaloperpub",
    "bech32PrefixConsAddr": "cosmosvalcons",
    "bech32PrefixConsPub": "cosmosvalconspub"
  },
  "explorerUrl": "https://ping.pub/cosmos",
  "defaultApy": "19",
  "sortIndex": 1,
  "isNativeKeplrChain": true
}

chainName: Display in the wallet page of StaFiHub App or in keplr wallet if keplr does not support the chain by default.

displayHubName: Display in IBC bridge of StaFiHub App.

defaultApy: The default staking apy of the target chain. Initialize display in StaFiHub App. It is useless when the rToken service is officially running for a few days.

isNativeKeplrChain: It is true if keplr has integrated your chain, false otherwise.

StaFiHub App
this