Method: Hive::Broadcast.transfer_to_savings
- Defined in:
- lib/hive/broadcast.rb
.transfer_to_savings(options, &block) ⇒ Object
For time locked savings accounts.
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 |
# File 'lib/hive/broadcast.rb', line 1087 def self.transfer_to_savings(, &block) required_fields = %i(from to amount) params = [:params] check_required_fields(params, *required_fields) params[:memo] ||= '' params[:amount] = normalize_amount(.merge amount: params[:amount]) ops = [[:transfer_to_savings, params]] process(.merge(ops: ops), &block) end |