Skip to content

Commit

Permalink
fix(fees): updated default fees for IRO plan creation and bonding to …
Browse files Browse the repository at this point in the history
…gauge (#1583)

Co-authored-by: Michael Tsitrin <michael@dymension.xyz>
  • Loading branch information
omritoptix and mtsitrin authored Dec 1, 2024
1 parent 520ac9c commit ef19155
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions x/iro/keeper/settle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions x/iro/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
// Default parameter values

var (
DefaultTakerFee = "0.02" // 2%
DefaultCreationFee = math.NewInt(10).MulRaw(1e18) /* 10 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
DefaultTakerFee = "0.02" // 2%
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
)

const (
Expand Down
2 changes: 1 addition & 1 deletion x/lockup/types/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef19155

Please sign in to comment.