File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
pkg/solana/currencycreator Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ import (
7
7
"github.com/code-payments/code-server/pkg/usdc"
8
8
)
9
9
10
- type EstimateCurrentPriceArgs struct {
11
- CurrentSupplyInQuarks uint64
12
- }
13
-
14
10
func EstimateCurrentPrice (currentSupplyInQuarks uint64 ) * big.Float {
15
11
scale := big .NewFloat (math .Pow10 (int (DefaultMintDecimals ))).SetPrec (defaultCurvePrec )
16
12
unscaledCurrentSupply := big .NewFloat (float64 (currentSupplyInQuarks )).SetPrec (defaultCurvePrec )
Original file line number Diff line number Diff line change 18
18
19
19
var (
20
20
METADATA_PROGRAM_ID = ed25519 .PublicKey (mustBase58Decode ("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" ))
21
- SYSTEM_PROGRAM_ID = ed25519 .PublicKey (mustBase58Decode ("11111111111111111111111111111111" ))
22
21
SPL_TOKEN_PROGRAM_ID = ed25519 .PublicKey (mustBase58Decode ("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ))
22
+ SYSTEM_PROGRAM_ID = ed25519 .PublicKey (mustBase58Decode ("11111111111111111111111111111111" ))
23
23
24
24
SYSVAR_RENT_PUBKEY = ed25519 .PublicKey (mustBase58Decode ("SysvarRent111111111111111111111111111111111" ))
25
25
)
You can’t perform that action at this time.
0 commit comments