ProtocolShareReserve

ProtocolShareReserve

Contract used to store and distribute the reserves generated in the markets.

Solidity API

enum Schema {
  PROTOCOL_RESERVES,
  ADDITIONAL_REVENUE
}
struct DistributionConfig {
  enum ProtocolShareReserve.Schema schema;
  uint16 percentage;
  address destination;
}

CORE_POOL_COMPTROLLER

address of core pool comptroller contract

address CORE_POOL_COMPTROLLER

WBNB

address of WBNB contract

address WBNB

vBNB

address of vBNB contract

address vBNB

poolRegistry

address of pool registry contract

address poolRegistry

assetsReserves

comptroller => asset => schema => balance

mapping(address => mapping(address => mapping(enum ProtocolShareReserve.Schema => uint256))) assetsReserves

totalAssetReserve

asset => balance

mapping(address => uint256) totalAssetReserve

distributionTargets

configuration for different income distribution targets

struct ProtocolShareReserve.DistributionConfig[] distributionTargets

Last updated