Class: StellarBase::WithdrawalRequests::FindWithdrawableAsset

Inherits:
Object
  • Object
show all
Defined in:
app/services/stellar_base/withdrawal_requests/find_withdrawable_asset.rb

Class Method Summary collapse

Class Method Details

.call(asset_code) ⇒ Object



5
6
7
8
# File 'app/services/stellar_base/withdrawal_requests/find_withdrawable_asset.rb', line 5

def self.call(asset_code)
  withdrawable_assets = StellarBase.configuration.withdrawable_assets
  withdrawable_assets.find {|asset| asset[:asset_code] == asset_code }
end