HydraDX-node
HydraDX-node copied to clipboard
HydraDX node - cross-chain liquidity protocol built on Substrate
As was mentioned during builder's review session - it would be probably beneficial to spend some effort and investigate use of storage transactions in the exchange pallet's algorithm. We won't...
The general assumption is that the PoS nodes (can) run offchain workers themselves who publish data (e.g. price feeds) as oracles so that this data can be used on-chain. To...
As far as simple solution goes: https://github.com/paritytech/substrate/issues/7685 some examples to look at: https://github.com/jimmychu0807/substrate-offchain-pricefetch/blob/ceb7b5994b480a19f2bc5068860a26068d4f8ef3/substrate/pallets/price-fetch/src/lib.rs#L301 Better solution would probably be to add method to "Price" to serialize from f64 or any other...
**Notable changes:** Use our own copy of `orml_currencies` pallet from `warehouse` New benchmarking commands (`node/src/command.rs`) No need for `#[transactional]` macro The version of `fixed` crate fixed to `1.17.0` Use polkadot ...
Native asset is added to registry in genesis config. however this was done for hydradx parachain and therefore, there is no native asset in registry. pallet-asset-registry does not have a...
The AMM state machine in Omnipool operates in integer domain, where rounding is needed at each state change. We provided an analysis of the rounding effect with a special focus...
It is not necessary an issue or a vulnerability, but an observation of the current design. ### Description https://github.com/galacticcouncil/HydraDX-node/blob/16cdbcf25ef2f1dac5c3569d8cd44cc028ec4076/pallets/omnipool/src/lib.rs#L751 The state change of the `remove_liquidity()` operation calculates a [`delta_b`](https://github.com/galacticcouncil/HydraDX-math/blob/1f359462f1db35525fe588e5896a194cb485eb52/src/omnipool/math.rs#L285) variable...
When add liquidity, the tvl of an asset is vulnerable to stable coin price manipulation, since the preferred stable coin is a tradable asset in the pool and tvl is...