Skip to content

BSC#21

Open
arthurka-o wants to merge 12 commits intomainfrom
bsc
Open

BSC#21
arthurka-o wants to merge 12 commits intomainfrom
bsc

Conversation

@arthurka-o
Copy link
Contributor

No description provided.

arthurka-o and others added 12 commits September 11, 2025 14:31
fix: update referral contract address to new deployment
When a MongoDB affiliate record is missing (e.g. after cleanup),
verify affiliate status on-chain via userTier before rejecting.
Auto-creates the MongoDB record if on-chain tier > 0.

- Add OnChainService with reusable BSC client and 5s timeout
- Apply fallback in both affiliate.service and signature.service
- Use findOneAndUpdate with upsert to prevent race conditions
- Add BSC_RPC_URL config with public fallback
feat: add on-chain affiliate verification fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants