Configure Splits
Guides

Configure Splits

Setting up a 60/40 or custom multi-recipient allocation totaling 10,000 BPS.

Configure multi-recipient shares in a pool ensuring the cumulative sum strictly equals 10,000 basis points.

Goal & Allocation Rules

  • Every share is expressed in basis points (10,000 BPS = 100%).
  • Cumulative shares cannot exceed 10,000 during intermediate additions.
  • Payments will fail unless total pool shares equal exactly 10,000 BPS.

Configuring a 60/40 Split

CONTRACT="CCOXHXGFTYVRRCJ7U32QZJCWXDTNQLRMDS3IAGW5MGFEWOUEXNYYKLHF"
# Member 1: Alice (60% = 6,000 BPS)
stellar contract invoke \
--id "$CONTRACT" \
--source deployer \
--network testnet \
-- \
add_member \
--pool_id 1 \
--address "GA...ALICE_ADDRESS" \
--share_bps 6000
# Member 2: Bob (40% = 4,000 BPS)
stellar contract invoke \
--id "$CONTRACT" \
--source deployer \
--network testnet \
-- \
add_member \
--pool_id 1 \
--address "GB...BOB_ADDRESS" \
--share_bps 4000

Updating Member Shares Later

To modify an existing member's share, use update_member_share. The contract verifies that with the updated share, total pool BPS does not exceed 10,000.