Skip to content

Commit 2626826

Browse files
committed
Minor cleanup of currencycreator package
1 parent 359d842 commit 2626826

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pkg/solana/currencycreator/estimate.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import (
77
"github.com/code-payments/code-server/pkg/usdc"
88
)
99

10-
type EstimateCurrentPriceArgs struct {
11-
CurrentSupplyInQuarks uint64
12-
}
13-
1410
func EstimateCurrentPrice(currentSupplyInQuarks uint64) *big.Float {
1511
scale := big.NewFloat(math.Pow10(int(DefaultMintDecimals))).SetPrec(defaultCurvePrec)
1612
unscaledCurrentSupply := big.NewFloat(float64(currentSupplyInQuarks)).SetPrec(defaultCurvePrec)

pkg/solana/currencycreator/program.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ var (
1818

1919
var (
2020
METADATA_PROGRAM_ID = ed25519.PublicKey(mustBase58Decode("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"))
21-
SYSTEM_PROGRAM_ID = ed25519.PublicKey(mustBase58Decode("11111111111111111111111111111111"))
2221
SPL_TOKEN_PROGRAM_ID = ed25519.PublicKey(mustBase58Decode("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"))
22+
SYSTEM_PROGRAM_ID = ed25519.PublicKey(mustBase58Decode("11111111111111111111111111111111"))
2323

2424
SYSVAR_RENT_PUBKEY = ed25519.PublicKey(mustBase58Decode("SysvarRent111111111111111111111111111111111"))
2525
)

0 commit comments

Comments
 (0)