Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Jan 14, 2025
1 parent 018f4d5 commit f00c766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions script/psm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ reserved tx psm swap 100000000000000000000000usdt fxUSD --from validator1 --keyr

sleep 7

reserved tx psm swap 1000000000usdc nomUSD --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake
reserved tx psm swap 1000000000usdc fxUSD --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake
sleep 7
reserved tx psm swap 1000nomUSD usdc --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake
reserved tx psm swap 1000fxUSD usdc --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake
sleep 7
reserved tx psm swap 1000nomUSD usdt --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake
reserved tx psm swap 1000fxUSD usdt --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake
6 changes: 3 additions & 3 deletions x/oracle/keeper/band_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (k Keeper) SetInitPrice(ctx context.Context) error {
initPrice := []*types.BandPriceState{
// multiplier = 1000
{
Symbol: "nomUSD",
Symbol: "fxUSD",
Rate: math.NewInt(10000), //1
ResolveTime: sdkCtx.BlockTime().Unix(),
PriceState: *types.NewPriceState(math.LegacyMustNewDecFromStr("1"), sdkCtx.BlockTime().Unix()),
Expand All @@ -651,13 +651,13 @@ func (k Keeper) SetInitPrice(ctx context.Context) error {
PriceState: *types.NewPriceState(math.LegacyMustNewDecFromStr("1"), sdkCtx.BlockTime().Unix()),
},
{
Symbol: "nomEUR",
Symbol: "fxEUR",
Rate: math.NewInt(10910), //1.091
ResolveTime: (sdkCtx.BlockTime().Unix()),
PriceState: *types.NewPriceState(math.LegacyMustNewDecFromStr("1.091"), sdkCtx.BlockTime().Unix()),
},
{
Symbol: "nomJPY",
Symbol: "fxJPY",
Rate: math.NewInt(66), //0.0066
ResolveTime: (sdkCtx.BlockTime().Unix()),
PriceState: *types.NewPriceState(math.LegacyMustNewDecFromStr("0.0066"), sdkCtx.BlockTime().Unix()),
Expand Down

0 comments on commit f00c766

Please sign in to comment.