Skip to content

Commit 72a062c

Browse files
committed
update readme & fix comment
Signed-off-by: master_jedy <[email protected]>
1 parent d7d17e5 commit 72a062c

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

price_feeds/ton/pyth-connector/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Pyth-connector example
2-
Provides onchain-getter: User -> User JettonWallet -> App -> Pyth -> App -> ...
3-
and proxy call: User -> Pyth -> App -> ... pyth usage examples.
2+
Provides onchain-getter: **User -> User JettonWallet -> App -> Pyth -> App -> ...** and proxy call: **User -> Pyth -> App -> ...** pyth usage examples.
43

5-
This example can be used as a separate module providing tools for sandbox testing: exports functions for deploying and configuring a local pyth contract
4+
This example can be used as a standalone module that provides tools for sandbox testing by exporting functions for deploying and configuring a local Pyth contract.
65

7-
It shows techniques how to use the pyth oracle in finacial applications.
8-
The demonstration is fully sandboxed and doesn't need real on-chain contracts nor testnet neither mainnet.
9-
Usage of hermes client is also not required: prices can be formed locally, e.g. **{TON: 3.12345, USDC: 0.998, USDT: 0.999}.**
6+
It demonstrates techniques for using the Pyth oracle in financial applications.
7+
8+
The demonstration is fully sandboxed and does not require real on-chain contracts on either testnet or mainnet.
9+
Using the Hermes client is also not required — prices can be generated locally, for example: **{TON: 3.12345, USDC: 0.998, USDT: 0.999}**.
10+
11+
This is achieved by using a patched Pyth contract that accepts simplified prices without a Merkle trie proof, and therefore does not verify the authenticity of the prices.
12+
Important: This patched contract is intended for testing purposes only. The production version must use the authentic Pyth contract deployed on the mainnet.
1013

1114
## Project structure
1215

@@ -20,7 +23,7 @@ First you need to install dependencies, node v22 is required, you can use nvm to
2023
Then install dependencies, just run `yarn`
2124

2225
### Build
23-
to build the module you can run`yarn build`
26+
to build the module you can run `yarn build`
2427

2528
### Contracts
2629
To prebuild contracts run`yarn contracts`

price_feeds/ton/pyth-connector/contracts/Pyth/MainNoCheck.fc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
;; Get sender address from message
2525
slice cs = in_msg_full.begin_parse();
26-
int flags = cs~load_uint(4); ;; skip flags
26+
int flags = cs~load_uint(4); ;; load flags
2727
if (flags & 1) {
2828
return ();
2929
}

0 commit comments

Comments
 (0)