We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f15b604 commit cf3486cCopy full SHA for cf3486c
1 file changed
cadence/contracts/FlowALPv0.cdc
@@ -984,6 +984,11 @@ access(all) contract FlowALPv0 {
984
self._rebalancePositionNoLock(pid: id, force: true)
985
}
986
987
+ // Create a capability to the Pool for the Position resource
988
+ // The Pool is stored in the FlowALPv0 contract account
989
+ let poolCap = FlowALPv0.account.capabilities.storage
990
+ .issue<auth(FlowALPModels.EPosition) &{FlowALPModels.PositionPool}>(FlowALPv0.PoolStoragePath)
991
+
992
// Create and return the Position resource
993
let position <- FlowALPPositionResources.createPosition(id: id, pool: poolCap)
994
0 commit comments