A bucket (MoCBucket struct) is a Tokens/RBTC grouping abstraction that represents certain state and follows certain rules. It's identified by a name (currently
X2). It has a "balance" of RBTC, DoC, and BitPro. If it's a leverage (X) bucket, it also stores the balances of the leveraged token (currently only BTC2X) holders (
activeBalances). If it's instead a base bucket, it has a RBTC balance (
inrateBag) from interests accumulated by leveraged instruments allocations, daily processing will move the corresponding daily payment from this "bag" to base bucket balance. Balance accounting between buckets is articulated by a series of Smart Contracts that constitute the MoC ecosystem.