New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atomiqlabs/chain-solana

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomiqlabs/chain-solana - npm Package Compare versions

Comparing version 7.3.2 to 7.3.3

22

dist/solana/btcrelay/SolanaBtcRelay.js

@@ -433,11 +433,15 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const tipData = yield this.getTipData();
const currBlockheight = tipData.blockheight;
const blockheightDelta = requiredBlockheight - currBlockheight;
if (blockheightDelta <= 0)
return new BN(0);
const synchronizationFee = new BN(blockheightDelta).mul(yield this.getFeePerBlock(feeRate));
this.logger.debug("estimateSynchronizeFee(): required blockheight: " + requiredBlockheight +
" blockheight delta: " + blockheightDelta + " fee: " + synchronizationFee.toString(10));
return synchronizationFee;
// const tipData = await this.getTipData();
// const currBlockheight = tipData.blockheight;
//
// const blockheightDelta = requiredBlockheight-currBlockheight;
//
// if(blockheightDelta<=0) return new BN(0);
//
// const synchronizationFee = new BN(blockheightDelta).mul(await this.getFeePerBlock(feeRate));
// this.logger.debug("estimateSynchronizeFee(): required blockheight: "+requiredBlockheight+
// " blockheight delta: "+blockheightDelta+" fee: "+synchronizationFee.toString(10));
//
// return synchronizationFee;
return new BN(5000000);
});

@@ -444,0 +448,0 @@ }

{
"name": "@atomiqlabs/chain-solana",
"version": "7.3.2",
"version": "7.3.3",
"description": "Solana specific base implementation",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -544,14 +544,15 @@ import {AnchorProvider} from "@coral-xyz/anchor";

public async estimateSynchronizeFee(requiredBlockheight: number, feeRate?: string): Promise<BN> {
const tipData = await this.getTipData();
const currBlockheight = tipData.blockheight;
const blockheightDelta = requiredBlockheight-currBlockheight;
if(blockheightDelta<=0) return new BN(0);
const synchronizationFee = new BN(blockheightDelta).mul(await this.getFeePerBlock(feeRate));
this.logger.debug("estimateSynchronizeFee(): required blockheight: "+requiredBlockheight+
" blockheight delta: "+blockheightDelta+" fee: "+synchronizationFee.toString(10));
return synchronizationFee;
// const tipData = await this.getTipData();
// const currBlockheight = tipData.blockheight;
//
// const blockheightDelta = requiredBlockheight-currBlockheight;
//
// if(blockheightDelta<=0) return new BN(0);
//
// const synchronizationFee = new BN(blockheightDelta).mul(await this.getFeePerBlock(feeRate));
// this.logger.debug("estimateSynchronizeFee(): required blockheight: "+requiredBlockheight+
// " blockheight delta: "+blockheightDelta+" fee: "+synchronizationFee.toString(10));
//
// return synchronizationFee;
return new BN(5000000);
}

@@ -558,0 +559,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc