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
- Create an account (account-one)
- Upgrade account-one
- Create a second account (account-two) and use (account-one) as the referrer
- Create a third account (account-three)
- Give 10PPY to both account-two and account-three
- Have account 2 place two bets, one on each side of the market, which will guarantee a win
- Have account 3 take account-two's bets. Ensuring that account-two will win at least one bet
- Upon resolution of the markets, check to see that account-one has received 20% of 1% of account-two's winnings
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
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.cppthere 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.cppdictates 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