Refactor Layer2 Issuance and Vesting Logic #676
Labels
invalid
This doesn't seem right
Priority: Critical
refactor
Codebase cleaning & improvement
x/layer2
Description
Current logic regarding issuance and vesting involve LP tokens since DP tokens are never minted.
Expected Bahaviour
A refactor is needed in accordance with #675
drip
parameter ofdapp.IssuanceConfig
. After proposal approval, LPs are automatically sent to Spending Pool with deterministic namelp_appname
and rate calculated usingdrip
param.premint
andpostmint
parameters are amount of dp/denom token (and NOT LP tokens) to be minted additionally to thedapp.LiquidityPool.pooled_dptoken
. They happen atpremint_time
andpostmint_time
respectively.postmint_time
parameter is missing and should be created. It's a duration that starts whenpremint_time
happens.premint_time
happens when proposal is approved. No change required.deposit
is an optional parameter ofdapp.IssuanceConfig
which contains an ALREADY CREATED Spending Pool (must check if spending pool exists otherwise tx must fails with explicit error). Ifdeposit
is set, then mintedpostmint
andpremint
should be sent to the spending pool. If it is not set it should be sent todapp.teamreserve
.Proto Example
IssuanceConfig
The text was updated successfully, but these errors were encountered: