Funds Distribution

Intro

For maximum APY and Risk management, parachain has several derivative accounts on relaychain, each account act as an independent stash account. This is an abstracted fund allocation algorithm for distributing funds to each account.

MaxMinDistribution

Here is the link to the implementation.
  • Bond, the account of minimum active funds executes the operation.
  • Unbond, the account of maximum active funds executes the operation.
  • Rebond, the account of maximum unlocking funds executes the operation.

AverageDistribution

Here is the link to the implementation.
  • Bond/Unbond/Rebond, all operations executed by all accounts under average amount.