Skip to content

raydex-org/raydex-twap-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Ray Dex
Aug 12, 2023
1f10386 · Aug 12, 2023

History

1 Commit
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023
Aug 12, 2023

Repository files navigation

Ray Dex Oracle TWAP

A Uniswap V3 TWAP Price on PulseChain. Onchain oracle sending price feeds from Polygon to other chains over the deBridge protocol.

UNI V3 Contract Pools on Polygon

WETH/USDC >> 0x45dda9cb7c25131df268515131f647d726f50608 WBTC/USDC >> 0x847b64f9d3A95e977D157866447a5C0A5dFa0Ee5

Compile Smart Contract

npx hardhat compile

Test Smart Contract

npx hardhat test

Deploy TWAP on Polygon and Binance for PulseChain

npx hardhat run --network matic scripts/deploy.ts
npx hardhat run --network testnet scripts/deploy.ts
npx hardhat run --network bsc scripts/deploy.ts

Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS in this command:

Etherscan verification

npx hardhat verify --network matic DEPLOYED_CONTRACT_ADDRESS

About

A Uniswap V3 TWAP Price on PulseChain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published