Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eth): update legacy updateFee method pricing #1037

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions target_chains/ethereum/contracts/contracts/pyth/Pyth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ abstract contract Pyth is
function getUpdateFee(
uint updateDataSize
) public view returns (uint feeAmount) {
return singleUpdateFeeInWei() * updateDataSize;
// In the accumulator update data a single update can contain
// up to 255 messages and we charge a singleUpdateFee per each
// message
return 255 * singleUpdateFeeInWei() * updateDataSize;
}

function getUpdateFee(
Expand Down Expand Up @@ -679,6 +682,6 @@ abstract contract Pyth is
}

function version() public pure returns (string memory) {
return "1.3.0";
return "1.3.1";
}
}
2 changes: 1 addition & 1 deletion target_chains/ethereum/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-evm-contract",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"private": "true",
"devDependencies": {
Expand Down