diff --git a/package.json b/package.json index 709ec49..17c3a14 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "dlc-btc-lib", - "version": "2.4.0", + "version": "2.4.1", "description": "This library provides a comprehensive set of interfaces and functions for minting dlcBTC tokens on supported blockchains.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/functions/ripple/ripple.functions.ts b/src/functions/ripple/ripple.functions.ts index a35dda6..763da04 100644 --- a/src/functions/ripple/ripple.functions.ts +++ b/src/functions/ripple/ripple.functions.ts @@ -165,7 +165,7 @@ export async function setTrustLine( result: { lines }, }: AccountLinesResponse = await rippleClient.request(accountNonXRPBalancesRequest); - if (lines.some(line => line.currency === 'DLC' && line.account === issuerAddress)) { + if (lines.some(line => line.currency === 'BTC' && line.account === issuerAddress)) { console.log(`Trust Line already exists for Issuer: ${issuerAddress}`); return; } @@ -174,7 +174,7 @@ export async function setTrustLine( TransactionType: 'TrustSet', Account: ownerAddress, LimitAmount: { - currency: 'DLC', + currency: 'BTC', issuer: issuerAddress, value: '10000000000', }, @@ -311,7 +311,7 @@ export async function getDLCBTCBalance( }: AccountLinesResponse = await rippleClient.request(accountNonXRPBalancesRequest); const dlcBTCBalance = lines.find( - line => line.currency === 'DLC' && line.account === issuerAddress + line => line.currency === 'BTC' && line.account === issuerAddress ); if (!dlcBTCBalance) { return 0; @@ -345,7 +345,7 @@ export async function createCheck( Destination: destinationAddress, DestinationTag: destinationTag, SendMax: { - currency: 'DLC', + currency: 'BTC', value: shiftedAmountAsNumber.toString(), issuer: destinationAddress, }, diff --git a/src/network-handlers/ripple-handler.ts b/src/network-handlers/ripple-handler.ts index 3d0e048..5969b08 100644 --- a/src/network-handlers/ripple-handler.ts +++ b/src/network-handlers/ripple-handler.ts @@ -536,6 +536,10 @@ export class RippleHandler { if ( [ '8FC923A16C90FB7316673D35CA228C82916B8E9F63EADC57BAA7C51C2E7716AA', + 'AD2F46F345B07A070CBB0797D47D4D1A6CAA2BB541A0932014B909194665E4D5', + 'DDF48640BF7DBC84FD08C1129999415CF5745095871FA6E50F1EAEB8AB032654', + 'BA8B88BC1FD746F538AA6EFD1F1BFC982E3CCDD93EDDCFB4541EA608B355D778', + '48A7965799596CDA23C774778CD2D65E3E7C01648077539840A51ABD54791E32', '93BAA031806AE4902933C1EE9B66E7EBAF0F7A182314085BEFF99DF080A1CBCB', 'F51C7E3CCFD2EC8CA9A460A34C5BC185E9466031865E76736C0A60BC3F7C7316', ].includes(checkID) @@ -549,7 +553,7 @@ export class RippleHandler { Account: this.issuerAddress, CheckID: checkID, Amount: { - currency: 'DLC', + currency: 'BTC', value: dlcBTCAmount, issuer: this.issuerAddress, }, @@ -602,7 +606,7 @@ export class RippleHandler { Destination: destinationAddress, DestinationTag: 1, Amount: { - currency: 'DLC', + currency: 'BTC', value: dlcBTCAmount, issuer: this.issuerAddress, },