Skip to content

Stubbed Referral Logic in place_bet #191

@hman38705

Description

@hman38705

Description
Line 19 accepts a referrer, but the logic for allocating rewards or fees to that referrer is entirely missing from the function body. The protocol is claiming to support a referral system that is mechanically non-functional, misleading promoters and users about the economic incentives of the platform.

Requirements and context

  • Fully implement the referral reward allocation during the bet placement process.
  • Transfer a portion of the fee to the ReferrerBalance map (from Issue 1/9).

Suggested execution

  • Fork the repo and create a branch: git checkout -b feat/issue-88-referral-implementation
  • Wire up the economic rewards.

Implementation changes

  • Update bets.rs to calculate and store referral rewards upon successful bet placement.

Test and commit

  • Verify that a referrer's balance increases correctly after a successful referred bet.

Example commit message
feat: fully implement referral reward allocation in place_bet

Guidelines

  • Economic functional integrity.
  • Timeframe: 72 hours.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions