Purchases are handled by a smart contract on Polygon. It takes a payment, splits it, and sends each share out in one step. It holds no balance of its own.
The buyer sends POL. A first purchase also records who referred them and gives them a position in that person's team.
30% to the referrer, 8% to each of five team levels, 10% and 10% to the company, 10% to running costs.
The app sees the purchase on the ledger and adds credits for its dollar value at that moment.
Change the addresses of the three company wallets. Set the minimum purchase. Pause new purchases. Hand ownership to another wallet.
Change the percentages. Move or remove a member. Redirect a member's payout. Withdraw from the contract.
A wallet that refuses POL cannot block a purchase. That share is held for the recipient, who can collect it at any time.
You can move your position to a new wallet you control. Your current wallet names the new one, and the new wallet has to accept, so a position can never be pushed onto someone who did not ask for it.
Live on Polygon at 0xDAe08De5802Dd5E341a5E0e14c4357Ba076DD3F0. You can compare the code published there with the source below.
This is the contract source. It is checked by 51 automated tests, including one that confirms every unit paid in is paid out across hundreds of random purchases.
Loading the source...