mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-24 06:17:54 +00:00
feat: add CoinGecko price logic with DOT-based fallback
- HEZ price: CoinGecko direct > DOT/3 > DEX pool - PEZ price: CoinGecko direct > DOT/10 > DEX pool - Added AuthorizeCall signed extension for blockchain connection - Updated @pezkuwi packages to 16.5.22 and 14.0.13
This commit is contained in:
@@ -69,7 +69,16 @@ export const PezkuwiProvider: React.FC<PezkuwiProviderProps> = ({
|
||||
}
|
||||
|
||||
const provider = new WsProvider(currentEndpoint);
|
||||
const apiInstance = await ApiPromise.create({ provider });
|
||||
// PezkuwiChain custom signed extensions
|
||||
const apiInstance = await ApiPromise.create({
|
||||
provider,
|
||||
signedExtensions: {
|
||||
AuthorizeCall: {
|
||||
extrinsic: {},
|
||||
payload: {},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
await apiInstance.isReady;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user