Skip to content

Commit 6c32527

Browse files
authored
Setup USDF (#43)
1 parent 200948e commit 6c32527

File tree

3 files changed

+8
-25
lines changed

3 files changed

+8
-25
lines changed

ocp/config/config.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package config
22

33
import (
4+
"fmt"
5+
46
"github.com/mr-tron/base58"
57

68
"github.com/code-payments/ocp-server/usdf"
@@ -14,14 +16,12 @@ const (
1416
CoreMintDecimals = usdf.Decimals
1517
CoreMintName = "USDF"
1618
CoreMintSymbol = "USDF"
17-
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."
18-
CoreMintImageUrl = "https://flipcash-currency-assets.s3.us-east-1.amazonaws.com/todo/icon.png"
19+
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."
1920

2021
SubsidizerPublicKey = "cash11ndAmdKFEnG2wrQQ5Zqvr1kN9htxxLyoPLYFUV"
2122

22-
// todo: replace with real VM
23-
CoreMintVmAccountPublicKey = "BVMGLfRgr3nVFCH5DuW6VR2kfSDxq4EFEopXfwCDpYzb"
24-
CoreMintVmOmnibusPublicKey = "GNw1t85VH8b1CcwB5933KBC7PboDPJ5EcQdGynbfN1Pb"
23+
CoreMintVmAccountPublicKey = "JACkaKsm2Rd6TNJwH4UB7G6tHrWUATJPTgNNnRVsg4ip"
24+
CoreMintVmOmnibusPublicKey = "D8oUTXRvarxhx9cjYdFJqWAVj2rmzry58bS6JSTiQsv5"
2525

2626
// todo: replace with new Jeffy
2727
// todo: DB store to track VM per mint
@@ -32,6 +32,7 @@ const (
3232
)
3333

3434
var (
35+
CoreMintImageUrl = fmt.Sprintf("https://flipcash-currency-assets.s3.us-east-1.amazonaws.com/%s/icon.png", CoreMintPublicKeyString)
3536
CoreMintPublicKeyBytes []byte
3637
)
3738

usdc/usdc.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
package usdc
22

3-
import (
4-
"crypto/ed25519"
5-
)
6-
73
const (
84
Mint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
9-
QuarksPerUsdf = 1000000
5+
QuarksPerUsdc = 1000000
106
Decimals = 6
117
)
12-
13-
var (
14-
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}
15-
)

usdf/usdf.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
package usdf
22

3-
import (
4-
"crypto/ed25519"
5-
)
6-
7-
// todo: Update config once USDF is created
8-
93
const (
10-
Mint = "USDFmFa553nkGNSvFn2gXCnpPuWLkgre2aHmPMDyaWi"
4+
Mint = "5AMAA9JV9H97YYVxx8F6FsCMmTwXSuTTQneiup4RYAUQ"
115
QuarksPerUsdf = 1000000
126
Decimals = 6
137
)
14-
15-
var (
16-
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}
17-
)

0 commit comments

Comments
 (0)