Skip to content

Commit 0fe3039

Browse files
fix for 0x9fb: pool[pool_shares] was still a string, so p_join_pool() did not expect that it had to convert to a Decimal. Most likely 0x8b6 had an action that properly did Decimal conversion before p_join_pool() was triggered
1 parent 7614200 commit 0fe3039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/parts/system_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def p_join_pool(params, step, history, current_state, action):
124124
amount_expected,
125125
symbol))
126126
pool['tokens'][symbol].balance += amount
127-
pool['pool_shares'] += pool_amount_out
127+
pool['pool_shares'] = Decimal(pool['pool_shares']) + pool_amount_out
128128

129129
return pool
130130

0 commit comments

Comments
 (0)