Developer Manual && API

How to create a pool in Koichi Swap

Constant Product Pool

  1. Go to Liquidity Tag.

  2. Choose the token pair you would like to create.

  3. Click Confirm Create Pool and wait for the transaction to be confirmed.

Stable Pool and Meta Stable Pool

Please contact the development team. The stable pool must be permissioned due to adversaries may wrongly use the "curve" function to keep their token price.

How to add a new token to the token list

  1. Go to Koichi Swap Tokenlists in Github.

  2. Create an issue with the following info:

    • Chain ID.

    • Token address in the corresponding chain.

    • Token logo 200x200 PNG.

An example:

Access API/ABI and examples

Koichi Swap Router

ABI

https://confluxscan.io/address/cfx:acb4uke6jwp09rmxwc4e5znzgbads099b63v41830v

Interface

Koichi Swap Base Pool

Interface

Constant Product Pool Factory

ABI

https://confluxscan.io/address/cfx:acacwu53up60gg2jtjpn01u07sdh94aksakk9bb8xf

Interface

Constant Product Pool

ABI

https://confluxscan.io/address/cfx:achnazus63vuj1jdfkk4e07vgvsxxsp1eyztdug6e2

Interface

Examples

  1. query token price from constant product pool

Stable Pool Factory

ABI

https://confluxscan.io/address/cfx:acdt6a8stb9p4teku9n8wsrxc04g055892p5jk18kz

Interface

Stable Pool

ABI

https://confluxscan.io/address/cfx:achtcc8vpzw34krmmv7ev14dvapfv5gxey8z1p1hys

Interface

Last updated