Skip to content

Shared stash account holding all system TFT funds #912

@sameh-farouk

Description

@sameh-farouk

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

  1. 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
  2. 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
  3. 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions