Class: StellarBase::WithdrawalRequests::GenMemo

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

Constant Summary collapse

LENGTH =
8

Class Method Summary collapse

Class Method Details

.callObject



7
8
9
10
11
12
13
14
15
# File 'app/services/stellar_base/withdrawal_requests/gen_memo.rb', line 7

def self.call
  loop do
    memo = GenRandomString.(length: LENGTH)
    if !WithdrawalRequest.exists?(memo: memo)
      return memo
      break
    end
  end
end