Class: CheckOrderSolvent

Inherits:
Object
  • Object
show all
Defined in:
lib/moneymarket/commands/check_order_solvent.rb

Instance Method Summary collapse

Instance Method Details

#performObject



2
3
4
5
# File 'lib/moneymarket/commands/check_order_solvent.rb', line 2

def perform
  return true if order.market_order?
  source_available_amount >= order.required_amount
end