robosats icon indicating copy to clipboard operation
robosats copied to clipboard

Referral codes persistence and links with Robots

Open ghost opened this issue 3 years ago • 3 comments
trafficstars

Describe the bug

If a Robot is not used in some time, the associated Referral code can't be recovered, because recovering the Robot creates a new Referral code.

To Reproduce

  1. Generate a new Robot
  2. Click on 'Your Profile'
  3. Activate 'Rewards and compensations'
  4. Save the 'Referral link'
  5. Don't trade and close the website
  6. Recover the Robot the next day
  7. See that you have the same Robot buy a new Referral code/link

Expected behavior

The user can think to generate a Referral link, share it and recover future earnings some time later.

Additional context

If a robot has no history, it's deleted automatically at midnight. By logging in again the next day, you have deterministically generated the same robot (same name and avatar, but another referral link).

Ref: https://github.com/Reckless-Satoshi/robosats/pull/62#issue-1160342760

ghost avatar Apr 09 '22 15:04 ghost

Another scenario:

  • Robot 1 have no history for now.
  • Robot 1 shared his referral link.
  • Robot 2 uses the one's link.
  • Robot 2 starts a trade, but does not end it that day, but after midnight.
  • Robot 1 loses his link and reward.
  • Robot 2 loses its conditions? (not sure)

ibertario avatar May 25 '22 23:05 ibertario

Would love to see robots with persistent referral links. I use a referral link in my robosats orderbook nostr bot which kind of depend on the referral link to be persistent. I imagine there's a lot of other similar scenarios that would need this.

0xtrr avatar Jun 18 '22 19:06 0xtrr

Would love to see robots with persistent referral links. I use a referral link in my robosats orderbook nostr bot which kind of depend on the referral link to be persistent. I imagine there's a lot of other similar scenarios that would need this.

As of now there is a trick to make sure your robot referral is permanent: create a robot and make a small trade of $5 USD with yourself. You can even use collaborative cancel after commiting the Sats. Since the robot has some 'history' it will never be killed by the cleaning service and the referral link will be permanent :)

Solving this issue for good is in the list and will be done soon!

Reckless-Satoshi avatar Jun 18 '22 19:06 Reckless-Satoshi