Pool

The Pool entity represents a user-managed asset pool on the Tradegen platform.

Constructor

constructor(chainId: ChainId, address: string, performanceFee: number, managerAddress?: string, name?: string)

Example

import { ChainId, Pool } from '@tradegen/sdk'

const pool = new Pool(ChainId.ALFAJORES, '0x0000000000000000000000000000000000000001', 10, '0x0000000000000000000000000000000000000002', 'My first pool')

Properties

  • chainId: The chain on which the pool runs on (mainnet, Alfajores, Baklava)

  • address: The pool's address

  • name: Name of the pool

  • managerAddress: Address of the pool's manager

  • performanceFee: % fee that user pays whenever they withdraw for a profit

Methods

equals

Checks if the current instance is equal to another (has an identical chainId and address).

equals(other: Pool): boolean

Last updated