Bonding Curve
Introduction
This guide focusses on the most common patterns of interactions with the Bonding Curve Modules. Please refer to the Technical Reference section to see all public getters and setters.
Setup Requirements
The guide includes code snippets for Inverter Network's TypeScript SDK. Please refer to the relevant code snippets based on the SDK you are using.
Set up Inverter Network SDK: Refer to the Quick Start guides for detailed instructions. See the React SDK Guide or TypeScript SDK Guide for more information.
Deploy a Workflow: Refer to the Deploy a Workflow guide for detailed instructions. See the React SDK Guide or TypeScript SDK Guide for more information.
Retrieve a deployed Workflow: Refer to the Operate a Workflow guide for detailed instructions. See the React SDK Guide or TypeScript SDK Guide for more information.
Optionally if your setup needs a specific contract: Refer to the Deploy a Contract Guide for detailed instructions. See the React SDK Guide or TypeScript SDK Guide for more information.
Bancor formula and supported chains can be found here: https://github.com/InverterNetwork/deployments/tree/main/deployments
Deployment Setup
Deploy the
Issuance TokenDeploy the
WorkflowRetrieve the
Workflow
Post Deployment: Set the Curve as a minter
In order to perform this action you should be the deployer of the token
await workflow.issuanceToken.module.write.setMinter([
workflow.fundingManager.address, true
], { confirmations: 1 })Admin Actions
These actions can be preformed by the workflow admin role
Curve Actions
These actions can be performed by the users of the product | app. The bonding curve funding managers have a calculate function which uses the formula contract to define the minimum amount out from either buy or sell method.
Last updated