We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90c7584 commit 51a5073Copy full SHA for 51a5073
1 file changed
alpha_homora_v2/position.py
@@ -90,8 +90,15 @@ def claim_all_rewards(self) -> tuple[str, dict]:
90
"""
91
92
encoded_spell_func = self.platform.prepare_claim_all_rewards()
93
+
94
+ pool_info = self.get_pool_info()
95
96
+ try:
97
+ spell_address = Web3.toChecksumAddress(pool_info['spellAddress'])
98
+ except KeyError:
99
+ spell_address = Web3.toChecksumAddress(self.platform.address)
100
- encoded_bank_func = self.homora_bank.functions.execute(self.pos_id, self.platform.address, encoded_spell_func)
101
+ encoded_bank_func = self.homora_bank.functions.execute(self.pos_id, spell_address, encoded_spell_func)
102
103
tx_hash, receipt = self.sign_and_send(
104
encoded_bank_func
0 commit comments