@zebec-network/exchange-card-sdk 1.1.7 → 1.1.9-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,7 @@ class StellarService {
|
|
|
48
48
|
* @returns {Promise<string>} A promise that resolves to the Vault address.
|
|
49
49
|
*/
|
|
50
50
|
async fetchUSDCVault() {
|
|
51
|
-
const data = await this.apiService.fetchVault("
|
|
51
|
+
const data = await this.apiService.fetchVault("xlm-usdc");
|
|
52
52
|
return data;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
@@ -126,7 +126,8 @@ class StellarService {
|
|
|
126
126
|
// Prepare transaction
|
|
127
127
|
const account = await this.server.loadAccount(accountAddress.address);
|
|
128
128
|
const fee = await this.server.fetchBaseFee();
|
|
129
|
-
|
|
129
|
+
console.log("vault address: ", vault.address);
|
|
130
|
+
// const memo = Memo.id(vault.tag?.toString() || "");
|
|
130
131
|
// Create USDC asset object
|
|
131
132
|
const usdcAsset = new stellar_sdk_1.Asset("USDC", this.sandbox ? constants_1.USDC_ISSUER.TESTNET : constants_1.USDC_ISSUER.MAINNET);
|
|
132
133
|
// Check Wallet balance
|
|
@@ -140,11 +141,10 @@ class StellarService {
|
|
|
140
141
|
networkPassphrase: this.sandbox ? stellar_sdk_1.Networks.TESTNET : stellar_sdk_1.Networks.PUBLIC,
|
|
141
142
|
})
|
|
142
143
|
.addOperation(stellar_sdk_1.Operation.payment({
|
|
143
|
-
destination:
|
|
144
|
+
destination: "GCFMEK6D33XWJWIMH5ZQGDO4XQAHQG4XCHJFBCHFG5LBWLGJOVCWTD3G",
|
|
144
145
|
asset: usdcAsset,
|
|
145
146
|
amount,
|
|
146
147
|
}))
|
|
147
|
-
.addMemo(memo)
|
|
148
148
|
.setTimeout(stellar_sdk_1.TimeoutInfinite)
|
|
149
149
|
.build();
|
|
150
150
|
// Sign the transaction
|