Skip to content

Commit e1ae1ad

Browse files
committed
fix(eth): update legacy updateFee method pricing
1 parent 85d5170 commit e1ae1ad

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/ethereum/contracts/contracts/pyth/Pyth.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ abstract contract Pyth is
9898
function getUpdateFee(
9999
uint updateDataSize
100100
) public view returns (uint feeAmount) {
101-
return singleUpdateFeeInWei() * updateDataSize;
101+
// In the accumulator update data a single update can contain
102+
// up to 255 messages and we charge a singleUpdateFee per each
103+
// message
104+
return 255 * singleUpdateFeeInWei() * updateDataSize;
102105
}
103106

104107
function getUpdateFee(
@@ -679,6 +682,6 @@ abstract contract Pyth is
679682
}
680683

681684
function version() public pure returns (string memory) {
682-
return "1.3.0";
685+
return "1.3.1";
683686
}
684687
}

target_chains/ethereum/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-evm-contract",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "",
55
"private": "true",
66
"devDependencies": {

0 commit comments

Comments
 (0)