VyFinance
LINKS
  • 🏠Welcome
  • πŸ“±Contact Us
  • ❓Getting Started
    • Connecting Your Wallet
      • Connecting Eternl Wallet
      • Connecting NAMI Wallet
      • Connecting GeroWallet
    • Getting Cardano Tokens
  • πŸ†˜Support
    • Common Errors
      • No Collateral
      • Wallet Fracked
      • An unexpected error has occurred
      • Error 400
      • Dapp account not connected
    • Common issues with staking
      • Tokens / NFT left wallet but cannot see tokens / NFT staked on platform
      • Cannot read properties of null
    • Common issues with harvesting
      • Cant see tokens / NFT that was staked
      • Dust transaction has left the wallet but nothing has happened
      • Wallet could not send the TX when trying to send dust
      • Cannot read properties of null
    • Support Links
  • πŸ‘¨β€πŸ’ΌTeam
  • IMPORTANT
    • πŸ—„οΈTokenomics
    • πŸ’±VyFi Token Swap Instructions
    • πŸ—ΊοΈRoad Map
    • πŸ“”Public Testnet
      • Guidelines for bug reports
      • Cardano Faucet
      • Set up your wallet on Pre-Prod Environment (ETERNL)
      • Set up your wallet on Pre-Prod Environment (NAMI)
  • PRODUCTS
    • ♻️BAR
      • Deposit VYFI to BAR
      • Withdraw VYFI from BAR
      • Serve the BAR
        • Embedded Liquidity Pools (ELPs)
        • Liquidity Pools Principal Token
        • The Serve Operation
        • An example of ELP’s in Action
    • πŸ’±DEx
      • How to Add Liquidity
      • How to Zap
      • How to Remove Liquidity
      • How to Farm
      • How to Trade
      • On Order / Cancel Order
      • Slippage
      • Layer 2 Liquidity Pools
      • Risks and Impermanence
      • Farming Set Adjustments
    • πŸ§‘β€πŸŒΎFarms
    • πŸ”Vaults
      • Token/LP Token Staking Vaults
        • Staking Tokens/LP Tokens
        • Harvesting from the Token Vault
      • NFT Vaults
        • Staking NFTs
        • Harvesting from the Vault
    • πŸ”Safe Swap
      • Private Swap
      • Public Swap
      • Claims
      • Fee Distribution
      • Bulk Import
    • 🎰Lottery
      • How to Buy Tickets
      • How to Claim Lottery Rewards
      • FAQ
    • πŸ—³οΈGovernance
      • Guide
Powered by GitBook
On this page
  • JSON Format
  • CSV Format
  • Private Sale
  • Public Sale
  • Claim
  1. PRODUCTS
  2. Safe Swap

Bulk Import

PreviousFee DistributionNextLottery

Last updated 23 days ago

This is an advanced feature please fully review these documents and double check all files before submission

This Bulk Import feature allows you to create a large number of Safe Swap orders easily with the power of the VyFi Tx Cart! To Initiate this process please use our "Bulk Import" feature. For a more hands off experience, our team can set up a distribution of claims for you. Please reach out to us on any or socials or email us at support@vyfi.io.

Depending on the type of orders you are trying to create you should be able to create about 60-80 orders in a single transaction, you may have to play with the number of orders to maximize a single transaction. Currently this import feature accepts the JSON format, which can be uploaded here

You will then need to confirm the Bulk Order through our transaction cart

JSON Format

 {
   "sellerAddress": string,
   "tokenAPolicyId": string,
   "tokenAAssetId": string,
   "tokenAQuantity": number,
   "buyerAddress": string,
   "tokenBPolicyId": string,
   "tokenBAssetId": string,
   "tokenBQuantity": number,
   "feeRatio": number
 }

CSV Format

sellerAddress,tokenAPolicyId,tokenAAssetId,tokenAQuantity,buyerAddress,tokenBPolicyId,tokenBAssetId,tokenBQuantity,feeRatio
string,string,string,number,string,string,string,number,number

*feeRatio is the amount of ADA fee you want to pay and how much you want to pass on to the person completing the order. If you set it to 100 you will pay the full fee, if set to 0 you will pass the full fee onto the user completing the order. 50 would make you split the fee 50/50 etc.

Private Sale

Here is an example of the JSON for a private sale:

[
 {
   "sellerAddress": "addr1q8mmn0ptk45swh...",
   "tokenAPolicyId": "",
   "tokenAAssetId": "",
   "tokenAQuantity": 5000000,
   "buyerAddress": "addr1q95kvwcvdlgqaz...",
   "tokenBPolicyId": "804f5544c1962a40546827cab750a88404dc7108c0f588b72964754f",
   "tokenBAssetId": "56594649",
   "tokenBQuantity": 50000000,
   "feeRatio": 50 
 }
]

sellerAddress,tokenAPolicyId,tokenAAssetId,tokenAQuantity,buyerAddress,tokenBPolicyId,tokenBAssetId,tokenBQuantity,feeRatio
addr1q8mmn0ptk45swh...,,,5000000,addr1q95kvwcvdlgqaz...,804f5544c1962a40546827cab750a88404dc7108c0f588b72964754f,56594649,50000000,50

If policyId or assetId is left blank we will assume the asset is ADA. The token quantity should be in lovelace format so if the token has decimals make sure you account for this. An input of 5 will appear as .000005 ADA while an input of will appear as 5 ADA

Public Sale

For a public sale the only difference is the buyerAddress will be left blank. This allows any wallet to complete this order. See example below:

[
 {
   "sellerAddress": "addr1q8mmn0ptk45swh...",
   "tokenAPolicyId": "",
   "tokenAAssetId": "",
   "tokenAQuantity": 5000000,
   "buyerAddress": "",
   "tokenBPolicyId": "804f5544c1962a40546827cab750a88404dc7108c0f588b72964754f",
   "tokenBAssetId": "56594649",
   "tokenBQuantity": 50000000,
   "feeRatio": 50
 }
]
sellerAddress,tokenAPolicyId,tokenAAssetId,tokenAQuantity,buyerAddress,tokenBPolicyId,tokenBAssetId,tokenBQuantity,feeRatio
addr1q8mmn0ptk45swh...,,,5000000,,804f5544c1962a40546827cab750a88404dc7108c0f588b72964754f,56594649,50000000,50

Claim

For a claim order you will want to leave all tokenB values blank and the tokenBQuantity set to 0 as we do not want anything in return. Here is an example of this structure:


[
 {
   "sellerAddress": "addr1q8mmn0ptk45swh...",
   "tokenAPolicyId": "",
   "tokenAAssetId": "",
   "tokenAQuantity": 5000000,
   "buyerAddress": "addr1q95kvwcvdlgqaz...",
   "tokenBPolicyId": "",
   "tokenBAssetId": "",
   "tokenBQuantity": 0,
   "feeRatio": 50
 }
]
sellerAddress,tokenAPolicyId,tokenAAssetId,tokenAQuantity,buyerAddress,tokenBPolicyId,tokenBAssetId,tokenBQuantity,feeRatio
addr1q8mmn0ptk45swh...,,,5000000,addr1q95kvwcvdlgqaz...,,,0,50

Template: Please enter the required data below the headers on your own copy of the above template.

πŸ”
https://docs.google.com/spreadsheets/d/18Y6Z0g5opZQZynHEq5swfmxWQr2qTAxKBPB2gOF2UCw/edit?usp=sharing