validateWithdraw

Overview

validateWithdraw

This function confirms user has sufficient balance meeting withdrawal requirements, and ensures the status of asset:

  • isActive

  • notPaused

  • ensures that withdrawal amount is: 0<amount≤userBalance0 < amount \leq userBalance, else revert

  • checks status flags of asset

To better understand getFlags, see: getFlags

Last updated

Was this helpful?