💻Protocol Vault

Protocol Vault deals with all token transfers and monetary transactions as well as receive all the allowances and keeps all the tokens.

Protocol Vault is responsible for all token transfers and related functions.

Ensure Allowance and Balance before interacting with any of the functions in Protocol Vault!

Write Methods

receiveDepositWETH

function receiveDepositWETH(uint256 amount)

Function to process deposit in the WETH token.

receiveDepsoitInOtherToken

function receiveDepositInOtherToken(address tokenAddress, uint256 amount)

Function to receive a deposit in any other token than WETH.

withdraw

function withdraw(uint256 amount)

Function to withdraw any amount from your margin.

Ensure that you have no open limit orders to be able to withdraw!

Check your withdrawable balance from the checkWithdrawableBalance function on the Margin contract.

Last updated