Method: Hive::Broadcast.escrow_release
- Defined in:
- lib/hive/broadcast.rb
.escrow_release(options, &block) ⇒ Object
This operation can be used by anyone associated with the escrow transfer to release funds if they have permission.
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 |
# File 'lib/hive/broadcast.rb', line 1039 def self.escrow_release(, &block) required_fields = %i(from to agent who receiver escrow_id) params = [:params] check_required_fields(params, *required_fields) params[:hbd_amount] = normalize_amount(.merge amount: params[:hbd_amount]) params[:hive_amount] = normalize_amount(.merge amount: params[:hive_amount]) ops = [[:escrow_release, params]] process(.merge(ops: ops), &block) end |