Flap Tax Vault

Table of Contents

Overview

When you use a smart contract as the "Funds Recipient Wallet", our system will try to parse it as a vault.

If you implement your smart contract following our Vault Specification, your Vault's information can be shown on our website.

Furthermore, if your vault is verified by our team or our auditing partners, your vault's "unverified" risk level can be updated to the corresponding risk level based on the audit results. And all audit reports will be uploaded to ipfs and available on our website for users to check. Users will be able to do their own research on the vaults before investing in your token.

circle-info

You can now create and deploy your own tax vaults without any permission or registration. Users can also use any vault they want when launching tokens. Vault factories no longer need to be registered in the VaultPortal before they can be used. See the Vault & VaultFactory specification page for full details on how to build your own vaults and vault factories.

circle-check

VaultPortal

The VaultPortal is a registry that manages vault factories and their deployed vaults. It provides a unified interface for interacting with vaults across different chains.

Deployed Addresses

Chain
VaultPortal Address

BNB mainnet

0x90497450f2a706f1951b5bdda52B4E5d16f34C06

BNB testnet

0x027e3704fC5C16522e9393d04C60A3ac5c0d775f

The ABI of the VaultPortal contract is as follows:

file-download
0B

Get Vault Info

We have two methods for fetching the vault info of a token:

  • tryGetVault(address taxToken) : This method first tries to find the vault created through the VaultPortal. If not found, it will try to find the vault by searching all registered vault factories and manually verified vaults. You should use this method for most cases to avoid unnecessary reverts.

  • getVault(address taxToken) : This method returns vault that created through the VaultPortal.

Get Audit Reports for A token

For each token, you can get its audit reports with pagination support using the getAuditReports method. If the token itself has no audit reports, it will fall back to its vault's factory's audit reports.

Launch A Token With A Vault

How to launch a token using a vault?

Vault is a system built outside of the main Flap Bonding Curve Protocol. To launch a token with a vault, you need to use the VaultPortal contract:

The parameters are similar to the newTokenV5 of the Portal contract, with two additional parameters at the end: vaultFactory and vaultData.

Last updated