valory-xyz / trader

Trader agent for AI prediction markets on Gnosis
Apache License 2.0
33 stars 16 forks source link

Safer use of SubscriptionPayload in SubscriptionRound #304

Open 0xArdi opened 3 months ago

0xArdi commented 3 months ago
          You could create an instance of the `SubscriptionPayload` and access the property to be safe instead of using the index.

_Originally posted by @Adamantios in https://github.com/valory-xyz/trader/pull/303#discussion_r1692730398_