pub type TwoResourcePoolState = TwoResourcePoolStateV1;

Aliased Type§

struct TwoResourcePoolState {
    pub vaults: [(ResourceAddress, Vault); 2],
    pub pool_unit_resource_manager: ResourceManager,
}

Fields§

§vaults: [(ResourceAddress, Vault); 2]

The vaults of the resources of the pool - the maximum number of entries that this map can have is two, a single vault for each resource. This is a map as it makes the interactions simpler.

§pool_unit_resource_manager: ResourceManager

The resource manager of the pool unit resource that the pool works with.

Trait Implementations§