@@ -97,9 +97,13 @@ func (s *currencyServer) GetMints(ctx context.Context, req *currencypb.GetMintsR
9797 }
9898 case "52MNGpgvydSwCtC2H4qeiZXZ1TxEuRVCRGa8LAfk2kSj" : // todo: load from DB populated by worker
9999 authorityAccount , _ := common .NewAccountFromPublicKeyString ("jfy1btcfsjSn2WCqLVaxiEjp4zgmemGyRsdCPbPwnZV" )
100+ vmAccount , _ := common .NewAccountFromPublicKeyString ("Bii3UFB9DzPq6UxgewF5iv9h1Gi8ZnP6mr7PtocHGNta" )
101+ seed , _ := common .NewAccountFromPublicKeyString ("H7WNaHtCa5h2k7AwZ8DbdLfM6bU2bi2jmWiUkFqgeBYk" )
102+ currencyConfigAccount , _ := common .NewAccountFromPublicKeyString ("BDfFyqfasvty3cjSbC2qZx2Dmr4vhhVBt9Ban5XsTcEH" )
103+ liquidityPoolAccount , _ := common .NewAccountFromPublicKeyString ("5cH99GSbr9ECP8gd1vLiAAFPHt1VeCNKzzrPFGmAB61c" )
100104 jeffyVaultAccount , _ := common .NewAccountFromPublicKeyString ("BFDanLgELhpCCGTtaa7c8WGxTXcTxgwkf9DMQd4qheSK" )
101105 coreMintVaultAccount , _ := common .NewAccountFromPublicKeyString ("A9NVHVuorNL4y2YFxdwdU3Hqozxw1Y1YJ81ZPxJsRrT4" )
102- vmAccount , _ := common .NewAccountFromPublicKeyString ("Bii3UFB9DzPq6UxgewF5iv9h1Gi8ZnP6mr7PtocHGNta " )
106+ coreMintFeesAccount , _ := common .NewAccountFromPublicKeyString ("5EcVYL8jHRKeeQqg6eYVBzc73ecH1PFzzaavoQBKRYy5 " )
103107
104108 var tokenAccount token.Account
105109 ai , err := s .data .GetBlockchainAccountInfo (ctx , jeffyVaultAccount .PublicKey ().ToBase58 (), solana .CommitmentFinalized )
@@ -129,17 +133,23 @@ func (s *currencyServer) GetMints(ctx context.Context, req *currencypb.GetMintsR
129133 LockDurationInDays : 21 ,
130134 },
131135 CurrencyCreatorMetadata : & currencypb.CurrencyCreatorMintMetadata {
136+ CurrencyConfig : currencyConfigAccount .ToProto (),
137+ LiquidityPool : liquidityPoolAccount .ToProto (),
138+ Seed : seed .ToProto (),
139+ Authority : authorityAccount .ToProto (),
140+ MintVault : jeffyVaultAccount .ToProto (),
141+ CoreMintVault : coreMintVaultAccount .ToProto (),
142+ CoreMintFees : coreMintFeesAccount .ToProto (),
132143 SupplyFromBonding : currencycreator .DefaultMintMaxQuarkSupply - jeffyVaultBalance ,
133144 CoreMintTokensLocked : coreMintVaultBalance ,
134- BuyFeeBps : currencycreator .DefaultBuyFeeBps ,
135145 SellFeeBps : currencycreator .DefaultSellFeeBps ,
136146 },
137147 }
138148 default :
139149 return & currencypb.GetMintsResponse {Result : currencypb .GetMintsResponse_NOT_FOUND }, nil
140150 }
141151
142- resp .MetadataByAddress [common . CoreMintAccount .PublicKey ().ToBase58 ()] = protoMetadata
152+ resp .MetadataByAddress [mintAccount .PublicKey ().ToBase58 ()] = protoMetadata
143153 }
144154 return resp , nil
145155}
0 commit comments