Closed namgold closed 2 months ago
Introduced a new lock escrow mechanism supported by the program.
Features:
AmmImpl.getLockedAtaAmount
AmmImpl.getLockedLpAmount
AmmImpl.getUserLockEscrow
AmmImpl.lockLiquidity
AmmImpl.claimLockFee
Introduced a new lock escrow mechanism supported by the program.
Features:
AmmImpl.getLockedAtaAmount
to retrieve locked LP amounts from the ATA mechanism (old mechanism).AmmImpl.getLockedLpAmount
to fetch locked LP amounts from two versions of locking: ATA (old) and escrow (new), and then sum them.AmmImpl.getUserLockEscrow
to obtain the user's lock escrow state.AmmImpl.lockLiquidity
to lock the user's LP into the lock escrow.AmmImpl.claimLockFee
to claim fees from locked LPs in the lock escrow.