🔥 Cubics has a new presence. Learn more

Create Pool

Create a new pool for a token. The configuration is final and once launched, cannot be changed. Documentation for individual pool programs can be accessed under https://docs.cubics.com/programs/

token (Required)

Primary token used by the pool

program (Required)

Pool program identifier

name

Pool name or title

description

Pool description text

mechanism

Custom program mechanism

candidates

List of claimable candidates

rate

Program rate, e.g. for interest

percentage

Program percentage (1 = 100%)

number

Custom program number

answers

List of correctly claimed answers

meta

Metadata as JSON object

expires

Datetime after which the pool expires

minAmount

Minimum amount for transfers to the pool

maxAmount

Maximum amount for transfers to the pool

minTime

Minimum time for locked claims in seconds

maxTime

Maximum time for locked claims in seconds

transfersLimit

Maximum number of transfers to the pool

claimsLimit

Maximum number of claims from the pool

tokenTarget

Minimum amount of tokens to consider the pool successful

baseTarget

Minimum amount of CUBIC to consider the pool successful

tokenLimit

Maximum amount of tokens to consider the pool successful

baseLimit

Maximum amount of CUBIC to consider the pool successful

What is a Pool?

Pools are autonomous accounts that execute a set of programmed instructions. Pools are generic wrappers for assets to enable decentralized functionalities such as auctions, launches, lending, locks, loots, lotteries, royalties, staking, swaps, and votes. Pools can hold tokens, make transfers, and create claims based on their underlying and specified program chosen at pool creation. A user creates a pool for a particular token while specifying the desired pool program. This program can be specified as auction (creating an NFT auction), launch (launch-pads for new tokens), lending (allowing others to borrow tokens against CUBIC collateral), locks (locking/vesting tokens), loot (randomized token drops), lottery (token lotteries), royalty (rewards for NFTs), swap (decentralized exchange), vote (voting/betting mechanisms) or any custom program as written in Cubics’s Turing-incomplete programming language. During pool creation, the user might configure the pool using predefined parameters and modify how program instructions are executed (for example, by specifying a minAmount, the pool might only accept transfers with a certain amount).

➡️ Cubics Quicklinks