peerplays-network / peerplays

The Peerplays Blockchain
https://www.peerplays.com
MIT License
34 stars 18 forks source link

Referral Program #188

Open atlantic-blockchain opened 4 years ago

atlantic-blockchain commented 4 years ago

Bug Description

Referral program may not being working as intended. Filing as bug, until the time where it is verified the referral program is working as designed.

Within the following file, /peerplays/libraries/chain/affiliate_payout.cpp there is no indication as to whether or not the users affiliate account is receiving the intended 20% of the rake.

The following file peerplays/libraries/chain/db_bet.cpp dictates which account will receive the 20% affiliate payout. It appears that the account that WON, is receiving the 20% payout, which means the funds are staying in the account that won.

Impacts

The peerplays referral program is impacted by this bug. If the funds never move from the winners hands, to the affiliates hands, then there is no incentive for anyone to be an affiliate partner for the peerplays blockchain.

Steps To Reproduce

Expected Behavior

Upon resolution of the markets, check to see that account-one has received 20% of 1% of account-two's winnings

Impacts

PBSA / Developer tasks

bobinson commented 4 years ago

@atlantic-blockchain - This is reported against the current mainnet or TESTNET ?

atlantic-blockchain commented 4 years ago

@atlantic-blockchain - This is reported against the current mainnet or TESTNET ?

MainNet