diff --git a/ocp/config/config.go b/ocp/config/config.go index 9fc8452..bc80eb6 100644 --- a/ocp/config/config.go +++ b/ocp/config/config.go @@ -1,6 +1,8 @@ package config import ( + "fmt" + "github.com/mr-tron/base58" "github.com/code-payments/ocp-server/usdf" @@ -14,14 +16,12 @@ const ( CoreMintDecimals = usdf.Decimals CoreMintName = "USDF" CoreMintSymbol = "USDF" - CoreMintDescription = "Your cash reserves are held in USDF, a fully backed digital dollar supported 1:1 by U.S. dollars. This ensures your funds retain the same value and stability as traditional USD, while benefiting from faster, more transparent transactions on modern financial infrastructure. You can deposit additional funds at any time, or withdraw your USDF for U.S. dollars whenever you like." - CoreMintImageUrl = "https://flipcash-currency-assets.s3.us-east-1.amazonaws.com/todo/icon.png" + CoreMintDescription = "Your USD Reserves are held in USDF, a fully backed digital dollar created in partnership with Coinbase. Your USD Reserves can be used to buy currencies on Flipcash, or can be withdrawn to any other crypto wallet that supports the Solana blockchain. USDF can also be sold, allowing you to move your funds into a traditional bank account." SubsidizerPublicKey = "cash11ndAmdKFEnG2wrQQ5Zqvr1kN9htxxLyoPLYFUV" - // todo: replace with real VM - CoreMintVmAccountPublicKey = "BVMGLfRgr3nVFCH5DuW6VR2kfSDxq4EFEopXfwCDpYzb" - CoreMintVmOmnibusPublicKey = "GNw1t85VH8b1CcwB5933KBC7PboDPJ5EcQdGynbfN1Pb" + CoreMintVmAccountPublicKey = "JACkaKsm2Rd6TNJwH4UB7G6tHrWUATJPTgNNnRVsg4ip" + CoreMintVmOmnibusPublicKey = "D8oUTXRvarxhx9cjYdFJqWAVj2rmzry58bS6JSTiQsv5" // todo: replace with new Jeffy // todo: DB store to track VM per mint @@ -32,6 +32,7 @@ const ( ) var ( + CoreMintImageUrl = fmt.Sprintf("https://flipcash-currency-assets.s3.us-east-1.amazonaws.com/%s/icon.png", CoreMintPublicKeyString) CoreMintPublicKeyBytes []byte ) diff --git a/usdc/usdc.go b/usdc/usdc.go index 0f2a7c7..24c8902 100644 --- a/usdc/usdc.go +++ b/usdc/usdc.go @@ -1,15 +1,7 @@ package usdc -import ( - "crypto/ed25519" -) - const ( Mint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" - QuarksPerUsdf = 1000000 + QuarksPerUsdc = 1000000 Decimals = 6 ) - -var ( - TokenMint = ed25519.PublicKey{198, 250, 122, 243, 190, 219, 173, 58, 61, 101, 243, 106, 171, 201, 116, 49, 177, 187, 228, 194, 210, 246, 224, 228, 124, 166, 2, 3, 69, 47, 93, 97} -) diff --git a/usdf/usdf.go b/usdf/usdf.go index f755645..947e6a8 100644 --- a/usdf/usdf.go +++ b/usdf/usdf.go @@ -1,17 +1,7 @@ package usdf -import ( - "crypto/ed25519" -) - -// todo: Update config once USDF is created - const ( - Mint = "USDFmFa553nkGNSvFn2gXCnpPuWLkgre2aHmPMDyaWi" + Mint = "5AMAA9JV9H97YYVxx8F6FsCMmTwXSuTTQneiup4RYAUQ" QuarksPerUsdf = 1000000 Decimals = 6 ) - -var ( - TokenMint = ed25519.PublicKey{7, 7, 48, 54, 200, 135, 41, 84, 87, 240, 35, 129, 5, 62, 49, 49, 241, 253, 42, 157, 138, 222, 175, 252, 65, 146, 180, 12, 103, 218, 59, 22} -)