Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ocp/config/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package config

import (
"fmt"

"github.com/mr-tron/base58"

"github.com/code-payments/ocp-server/usdf"
Expand All @@ -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
Expand All @@ -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
)

Expand Down
10 changes: 1 addition & 9 deletions usdc/usdc.go
Original file line number Diff line number Diff line change
@@ -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}
)
12 changes: 1 addition & 11 deletions usdf/usdf.go
Original file line number Diff line number Diff line change
@@ -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}
)
Loading