coin-verticalFinal Withdrawal from Legacy

📝 Manual Guide For Users with funds in the Legacy Exchange

This guide explains how users can manually withdraw their funds and close positions from Bluefin Legacy via SuiScan.


💰Withdraw Funds from Margin Bank

🪜 Step 1: Open the Legacy Perp Contract

  1. On the page, click on the “Contracts” tab.

  2. Under the “Margin Bank” section, locate the Withdraw_All_Margin_From_Bank method in the right-hand sidebar.

🪜 Step 2: Enter the Parameters

  • Type0:

  • Arg0:

  • Arg1:

  • Arg2:

  • Arg3:

🪜 Step 3: Connect Your Wallet

  1. Click “Connect Wallet” on SuiScan.

  2. Approve the connection request in your wallet (e.g., Slush Wallet).

🪜 Step 4: Execute the Withdrawal

  1. After entering the correct parameters, click “Execute”.

  2. A wallet popup will appear — review and sign the transaction.

🪜 Step 5: Approve the Transaction

  • After reviewing, approve the transaction

  • Once successful, the withdrawn amount (shown in the popup) will be transferred directly to your wallet.

  • You’ll also see the Transaction Digest on the screen.

  • use the link and view the transaction details on SuiScan.

circle-info

If you see the error 906 which implies Arg2 is already used, you need to add another unique random string.


You’ve successfully withdrawn your funds

💰Close Your Position

🪜 Step 1: Open the Legacy Perp Contract

  1. On the page, click on the “Contracts” tab.

  2. Under the “Exchange” section, locate the Close Position method in the right-hand sidebar.

🪜 Step 2: Enter the Parameters

  • Type0:

  • Arg0:

  • Arg1:

  • Arg2:

  • Arg3:

🪜 Step 3: Connect Your Wallet

  1. Click “Connect Wallet” on SuiScan.

  2. Approve the connection request in your wallet (e.g., Slush Wallet).

🪜 Step 4: Execute

  1. After entering the correct parameters, click “Execute”.

  2. A wallet popup will appear — review and sign the transaction.

🪜 Step 5: Approve the Transaction

  • After reviewing, approve the transaction

  • Once successful, you’ll also see the Transaction Digest on the screen.

  • use the link and view the transaction details on SuiScan.

circle-info

If you see the error 55 this implies you have pending funding on the position that must be paid

circle-info

If you see the error invalid borrow, does not exist this implies you have no open positions.


You’ve successfully closed your position

Last updated