TenX Community Forum

PAY rewards stopped accruing

I have a cron job running since July 2019 that once per day invokes etherscan’s api to call method unclaimedRewards (0x949813b8) on the TENX Token: Rewards contract (0xF5d49387EcFA36bD2BF047d9E72344A2b3afBB72) and logs the number of unclaimed PAY tokens. This stopped accruing on 11th August 2020, see below. Did rewards stop accruing for anyone else or is it just me?

2020/08/01 180.96
2020/08/02 181.67
2020/08/03 182.39
2020/08/04 183.10
2020/08/05 183.81
2020/08/06 184.52
2020/08/07 185.23
2020/08/08 185.94
2020/08/09 186.65
2020/08/10 187.37
2020/08/11 188.20
2020/08/12 188.20
2020/08/13 188.20
2020/08/14 188.20
2020/08/15 188.20
2020/08/16 188.20
3 Likes

Did you check your address manually at https://etherscan.io/dapp/0xF5d49387EcFA36bD2BF047d9E72344A2b3afBB72#readContract

Yes, before posting here I checked manually using the etherscan dapp, same value is returned
pay

Ich habe auch schon wieder das selbe Problem. Ist nicht das erste Mal!!

Ich will nicht wissen wieviel Leute das nicht täglich kontrollieren und vielleicht seit längerer Zeit keine rewards mehr ausgezahlt bekommen. Langsam reicht es Leute.

Mh how can i check if the same happened to me? Do you know when the rewards change (at which time daily)?

“trustless”

3 Likes

Please contact our support and we will check this: https://support.tenx.tech/hc/en-us/requests/new

Happy to hear @denifednu that you have a system of control in place :muscle:

2 Likes

It would appear I should have waited one more day before posting, see below unclaimed rewards have been credited. I don’t know why there was a 1 week delay and haven’t observed that before now.

2020/08/09 186.65
2020/08/10 187.37
2020/08/11 188.20
2020/08/12 188.20
2020/08/13 188.20
2020/08/14 188.20
2020/08/15 188.20
2020/08/16 188.20
2020/08/17 192.54
1 Like

Maybe they fixed it after you posted this here :wink:

@denifednu could you share the api call ?=)

2 Likes

Sure, here’s a cut down version of the script I use with error checking removed to help make it clear what it’s doing. Replace the last two lines with your Etherscan API key and your Eth address respectively.

#!/bin/bash -u

function etherscan_api {
  local APIKEY="${1}"
  local CONTRACT="${2}"
  local DATA="${3}"
  local URL
  URL="https://api.etherscan.io/api"
  URL="${URL}?module=proxy"
  URL="${URL}&action=eth_call"
  URL="${URL}&to=${CONTRACT}"
  URL="${URL}&data=${DATA}"
  URL="${URL}&tag=latest"
  URL="${URL}&apikey=${APIKEY}"
  curl 2>&1 \
  --connect-timeout 60 \
  --max-time 60 \
  --silent \
  --show-error \
  "${URL}"
}

function tenx_unclaimedRewards {
  local APIKEY="${1}"
  local ADDRESS="${2}"
  local CONTRACT="0xF5d49387EcFA36bD2BF047d9E72344A2b3afBB72"
  local METHOD="0x949813b8000000000000000000000000"
  local UNCLAIMED
  ADDRESS="${ADDRESS#0x}"
  ADDRESS="${ADDRESS,,}"
  read UNCLAIMED < <(\
    etherscan_api "${APIKEY}" "${CONTRACT}" "${METHOD}${ADDRESS}" \
    | jq -r '.result'
  )
  UNCLAIMED="${UNCLAIMED#0x0*}"
  UNCLAIMED="${UNCLAIMED^^}"
  echo "scale=2;ibase=16;${UNCLAIMED}/DE0B6B3A7640000" | bc
}

tenx_unclaimedRewards \
  "K4T0000000000000000000000000000000" \
  "0x6Ace000000000000000000000000000000000000"
4 Likes

Each time you see: Incomming transaction (IN) it means Tenx is “charging” tenx contract with new reward using PAY tokens.

Last reward pool was increased: 12 hrs 29 mins ago with 26,553 PAY tokens
previous was 6 days 15 hrs ago 5,065 Pay tokens.

So yes for 5 days they stopped adding new rewards. It was for everybody not just you.

I did wonder about that but noticed the contract contained > 4 million tokens so it didn’t seem like it had ‘run out’ of tokens to disperse. I see now they called the ‘release’ method. Thanks for the info.

Bug or feature? :face_with_raised_eyebrow:

1 Like

More likely no one in company, noticed some scheduled task stopped working. From blockchain perspective, rewards are done manually,