本页目前只有英文版。

Customization Using Vault

Overview

The Portal is the entry point of the Flap bonding curve protocol. It launches standard tokens and tax tokens and wires them to the bonding curve lifecycle. For each tax token launched, if the "funds recipient wallet" percentage is set to non-zero, a portion or all tax revenue is sent to that wallet. And when that wallet is a smart contract and implements Vault interface, it is called a Vault.

The VaultPortal builds on top of the Portal to add Vault functionality for tax tokens. It launches a tax token and sets up a Vault in one flow.

A vault is how a bonding-curve tax token customises the distribution of its tax revenue: the vault's code decides what happens to the revenue it receives. For Vault concepts and behavior, see Flap Tax Vault.

When to use which

  • Use Portal when you only need to launch a standard token or a tax token without Vault features or your custom Vault implementation.
  • Use VaultPortal when you want Vault-backed tax tokens and using a vault factory. (You can use any Vault Factory, this is permissionless.)

Relationship diagram

Vault vs VaultPortal relationship

Pool Launch tokens use their own vault type, the Pool Launch Vault, attached through the Pool Launch Portal. See Pool Launch.