-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Simplified Architecture
One shared stash account holding all system TFT funds can be shared between all users' twins
- Bind all users' twins to the same stash account
- Each user twin can maintain minimal operational TFT (maybe equal to his USD balance?) for covering workloads' billing while reducing TFT exposure per user.
- The large shared stash balance gives all users Gold discount tier (60% off)
What You Gain
- Centralized liquidity
- One account with bulk TFT holdings
- No need to distribute funds across many user accounts to maintain a discount tier per user
- Easy to manage and monitor
- Automatic discount tier benefits
- Stash balance is included in discount tier calculation for all bound twins
- All users get Gold tier (60% off) as long as stash is well-funded
- You capture the 60% discount as profit margin
- Independent contract ownership and billing
- The stash balance helps with discounts, but actual reserves are taken from each twin's own account, maintaining separate contract ownership and billing.
Practical example
Twin 1 (10 TFT) → binds to → Stash Account 0xSTASH (1000 TFT)
Twin 2 (20 TFT) → binds to → Stash Account 0xSTASH (1000 TFT)
Twin 3 (15 TFT) → binds to → Stash Account 0xSTASH (1000 TFT)
Each twin's billing will:
- Include the stash's 1000 TFT + own balance in the discount tier calculation
- Get better discount tiers based on the combined balance
- Still reserve from their own twin account, so workloads can be separately postponed based on each user's balance
Note: make sure tfgridModule.bondTwinAccount(twinId) is called by the stash/system account, and specify the user twin ID.