File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,15 @@ def get_offers(self):
125125 item = {}
126126 o_hash = str (offer [0 ])
127127 item ["hash" ] = o_hash
128- item ["price" ] = offer [1 ]
129- item ["proposal" ] = offer [2 ]
130- item ["votedValidators" ] = offer [3 ]
131- weight_remaining = offer [4 ]
128+ item ["remaining_losses" ] = offer [1 ]
129+ item ["price" ] = offer [2 ]
130+ item ["proposal" ] = offer [3 ]
131+ item ["votedValidators" ] = offer [4 ]
132+ weight_remaining = offer [5 ]
132133 item ["weightRemaining" ] = weight_remaining
133- item ["vset_id" ] = offer [5 ]
134- item ["creator" ] = offer [6 ]
134+ item ["vset_id" ] = offer [6 ]
135+ item ["creator" ] = offer [7 ]
136+ item ["created_at" ] = offer [- 1 ] # todo: bug in parsing slice in get method output
135137 required_weight = total_weight * 3 / 4
136138 if len (item ["votedValidators" ]) == 0 :
137139 weight_remaining = required_weight
You can’t perform that action at this time.
0 commit comments