Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Update packages to handle fee #60

Merged
merged 5 commits into from
Oct 14, 2022
Merged

Conversation

ali-behjati
Copy link
Contributor

@ali-behjati ali-behjati commented Oct 13, 2022

Our pyth-evm-js example and price pusher did not handle fee. This PR adds this behaviour and updates the Readme to explain it.

Other small changes:

  • Update the testnet spy bootstrap URL. It has changed today.
  • Remove Pyth contract address on Ropsten network. The network is decommissioned.

In a future PR we can add getUpdateFee part of the sdk or return it when the user requests for getPriceUpdateData. However, I didn't do it in this PR because of the syntax variation between web3/ethers. An ideal solution would implement two methods getUpdateFeeWeb3 getUpdateFeeEthers that does dynamic import and has those two as optional dependency.

p.s: Aptos design (like solana) does not require specifying exact amount as we have methods with funder.

It is decommissioned
Copy link
Contributor

@tompntn tompntn left a comment

Choose a reason for hiding this comment

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

Nice!

@ali-behjati ali-behjati merged commit 58d07e7 into main Oct 14, 2022
@ali-behjati ali-behjati deleted the abehjati/update-pkgs-handle-fee branch October 14, 2022 22:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants