From 49b39b527f94aa564433dc72fc933f3acbe4c6da Mon Sep 17 00:00:00 2001 From: omritoptix Date: Sat, 30 Nov 2024 10:26:09 +0100 Subject: [PATCH] Updated default fees for IRO plan creation and bonding to gauge. --- x/iro/keeper/settle_test.go | 8 ++++---- x/iro/types/params.go | 2 +- x/lockup/types/constants.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x/iro/keeper/settle_test.go b/x/iro/keeper/settle_test.go index f97c6e812..416f045bb 100644 --- a/x/iro/keeper/settle_test.go +++ b/x/iro/keeper/settle_test.go @@ -85,8 +85,8 @@ func (s *KeeperTestSuite) TestBootstrapLiquidityPool() { { name: "Small purchase", buyAmt: math.NewInt(1_000).MulRaw(1e18), - expectedDYM: math.NewInt(110).MulRaw(1e18), - expectedTokens: math.NewInt(1_100).MulRaw(1e18), + expectedDYM: math.NewInt(101).MulRaw(1e18), + expectedTokens: math.NewInt(1_010).MulRaw(1e18), }, { name: "Large purchase - left tokens are limiting factor", @@ -97,8 +97,8 @@ func (s *KeeperTestSuite) TestBootstrapLiquidityPool() { { name: "Nothing sold - pool contains only creation fee", buyAmt: math.NewInt(0), - expectedDYM: math.NewInt(10).MulRaw(1e18), // creation fee - expectedTokens: math.NewInt(100).MulRaw(1e18), + expectedDYM: math.NewInt(1).MulRaw(1e18), // creation fee + expectedTokens: math.NewInt(10).MulRaw(1e18), }, { name: "All sold - pool contains only reserved tokens", diff --git a/x/iro/types/params.go b/x/iro/types/params.go index 6a244b1d3..2a1b53487 100644 --- a/x/iro/types/params.go +++ b/x/iro/types/params.go @@ -11,7 +11,7 @@ import ( var ( DefaultTakerFee = "0.02" // 2% - DefaultCreationFee = math.NewInt(10).MulRaw(1e18) /* 10 DYM */ + DefaultCreationFee = math.NewInt(1).MulRaw(1e18) /* 1 DYM */ DefaultMinPlanDuration = 0 * time.Hour // no enforced minimum by default DefaultIncentivePlanMinimumNumEpochsPaidOver = uint64(10_080) // default: min 7 days (based on 1 minute distribution epoch) DefaultIncentivePlanMinimumStartTimeAfterSettlement = 60 * time.Minute // default: min 1 hour after settlement diff --git a/x/lockup/types/constants.go b/x/lockup/types/constants.go index 768eda6cf..8567233ac 100644 --- a/x/lockup/types/constants.go +++ b/x/lockup/types/constants.go @@ -4,4 +4,4 @@ import ( "github.com/dymensionxyz/dymension/v3/x/common/types" ) -var DefaultLockFee = types.DYM.QuoRaw(4) // 0.25 DYM +var DefaultLockFee = types.DYM.QuoRaw(20) // 0.05 DYM