Skip to content

Rewards timestamp displayed in app doesn't match when rewards were successfully distributed when transaction fails #119

@Greg15

Description

@Greg15

WeatherXM Related Element

  • Android Application

Describe the bug

The detailed WXM Rewards transaction for 8 August shows the rewards occurred at 7am local time (UTC-5), same as everyday (which is noon UTC). But the submitted transaction around noon UTC that day actually failed (The blockchain transaction actually says the failed transaction happened around 12:22pm.) Instead, it looks like a replacement contract call happened approximately 2 hours and 15 minutes after the failed transaction, at 2:37pm UTC.

How To Reproduce

Steps to reproduce the behavior:

  1. Look at actual contract transaction history for 8 August 2022, showing a failed reward distribution call around 12:22pm UTC, and a subsequent successful transaction around 2:37pm
  2. Compare those times to the exactly Noon UTC (7am localtime) in the app for that day.

Expected behavior

I would expect the timestamp in the app (in both the rewards chart and the detailed rewards list) to match when the rewards actually succeed and the rewards are awarded to the wallet. If that is not feasible, then perhaps add some comment in the app that the time displayed is when the reward amount was calculated but actual blockchain award can be delayed. If this latter approach is used, perhaps the time can be clickable to display that comment.

Screenshots

Screenshot_20220810-205428.png
Screenshot_20220810-205538.png

Additional context

I am only noticing this 2 1/2 days after the fact. As a result, I cannot know if the app, during that 2 hour and 15 minute window between the failed and successful transaction, either in the detailed WXM rewards page or in the WXM rewards chart, showed rewards had happened at 7am localtime (noon UTC), even though no rewards would have appeared in the wallets of station owners. That is a definite concern of using an exact noon time in the app display for the reward time (perhaps that is when the rewards are calculated in the back end rather than when the WXM tokens are actually awarded to the station owner).

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcknowledgedIssue/Suggestion has been acknowledged and will be considered in the future.suggestionNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions