parallel-finance / parallel Goto Github PK
View Code? Open in Web Editor NEWA decentralized lending & staking protocol built on top of the Polkadot ecosystem.
Home Page: https://parallel.fi
License: GNU General Public License v3.0
A decentralized lending & staking protocol built on top of the Polkadot ecosystem.
Home Page: https://parallel.fi
License: GNU General Public License v3.0
Potential tasks:
This is the list of all existing dispatchables:
After a PR merged, it should be automatically deploy the dev runtime to staging, so app users can try the new changes.
In the recent changes of master
branch
parallel/runtime/parallel/Cargo.toml
Line 45 in 2ee7944
pallet-collective
was added. But it was not added in runtime-benchmarks
. Because of that, this command cargo build --release --features runtime-benchmarks
is failing and I am getting below error.
Compiling pallet-collective v3.0.0 (https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4)
error[E0046]: not all trait items implemented, missing: `successful_origin`
--> /Users/ayushkumarmishra/.cargo/git/checkouts/substrate-7e08433d4c370a21/2be8fcc/frame/collective/src/lib.rs:879:1
|
879 | / impl<
880 | | O: Into<Result<RawOrigin<AccountId, I>, O>> + From<RawOrigin<AccountId, I>>,
881 | | AccountId: Default,
882 | | I,
... |
895 | | }
896 | | }
| |_^ missing `successful_origin` in implementation
|
= help: implement the missing item: `fn successful_origin() -> OuterOrigin { todo!() }`
polkadot-launch supports pre-registration of parachains https://github.com/paritytech/polkadot-launch/pull/86/files
we should have it so that the tests can be easier
Tasks to make the code production ready.
pub mod module
change to pallet
, put impl Pallet
out of this moduleexecute_liquidation
liquidate
function by extracting a few small functionsouter
loop if possibleThe total borrow balance should equal the total borrow principal. However, the total borrow balance and the total borrow principal of accounts use different algorithms, resulting in different accuracy losses.
I will try to fix it by using FixedPoint. https://github.com/encointer/substrate-fixed/
In our liquidation design, there should be a liquidation pool, we could find more info in our document (https://docs.parallel.fi/),
we may need more discussion about it, let's mark it here.
liquidate
and loans
modules get the price by using 'pallet_ocw_oracle::Config' trait constraints. It isn't easy to code unit tests.
Potencial tasks:
heiko & parallel have different markets KSM versus DOT, but these two runtimes share the same pallets. We need to have an abstration layer on this so that we don't need to have two same pallets.
It seems that only parallel-dev intend to support custom RPC, If we need to add custom RPC for node/parallel rpc_extensions_builder?
Feel free to put things here @kaichaosun @yz89
Example: https://github.com/Snowfork/polkadot-ethereum/blob/main/parachain/pallets/assets/src/lib.rs#L1-L26
This will help people to understand and use our APIs
For now, our liquidation is a fixed ratio, we should make it adjustable by governance.
In fact,"liquidation_threshold" should be higher than "collateral_rate",
but for the test, we can make it lower
for now, we may send the same data many times to para-chain stake pallet, we may consider mechanism on-chain or off-chain, to avoid it.
The transferred token to parachain should work in loans pallets.
try deposit DOT and borrow USDT
Description
Steps to Reproduce
Replace the example steps below with actual steps to reproduce the bug you're reporting.
Expected vs. Actual Behavior
What did you expect to happen after you followed the steps you described in the last section? What
actually happened?
Environment
Describe the environment in which you encountered this bug. Use the list below as a starting point
and add additional information if you think it's relevant.
rustup show
):Logs, Errors or Screenshots
Please provide the text of any logs or errors that you experienced; if
applicable, provide screenshots to help illustrate the problem.
Additional Information
Please add any other details that you think may help us solve your problem.
Items needed to be refactored includes,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.