Skip to content

fix: tron fee limit#229

Open
otsybizov wants to merge 1 commit intodevfrom
fix/tron-fee-limit
Open

fix: tron fee limit#229
otsybizov wants to merge 1 commit intodevfrom
fix/tron-fee-limit

Conversation

@otsybizov
Copy link
Copy Markdown
Contributor

🤖 Linear

Closes CONG-XXX

Copilot AI review requested due to automatic review settings July 17, 2025 02:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR centralizes the Tron energy price into a constant and updates how the transaction fee limit is calculated by incorporating the gas price.

  • Introduce a GAS_PRICE constant for the energy unit price.
  • Update TronWeb3Signer to calculate feeLimit as gasLimit * gasPrice.
  • Refactor getGasPrice to return the new GAS_PRICE constant.
Comments suppressed due to low confidence (1)

packages/adapters/chainservice/src/shared/rpc/tron/provider.ts:327

  • Add unit tests for getGasPrice and the fee limit calculation to verify correct behavior under various input scenarios.
    return GAS_PRICE;

Comment thread packages/adapters/chainservice/src/shared/rpc/tron/provider.ts
Comment thread packages/adapters/chainservice/src/shared/rpc/tron/provider.ts
Base automatically changed from mainnet-staging to dev August 5, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants