[CU-34qhnj1] add lend and unlend functions to Lending pallet#2643
[CU-34qhnj1] add lend and unlend functions to Lending pallet#2643mergify[bot] merged 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
Nix commands for this PRNOTE: You can also run our Nix commands in Docker. See the bottom of this comment. Make sure you have setup the Composable community cache:(you only need to run it once on your machine) nix-shell -p cachix --command "cachix use composable-community"Show all possible apps, shells and packages:Run the Composable node alone:nix run "github:ComposableFi/composable/7c30cf1a3edb62e0475511a684ad030f4dcf9c03#composable-node" -LSpin up a local devnet:nix run "github:ComposableFi/composable/7c30cf1a3edb62e0475511a684ad030f4dcf9c03#devnet" -L --option sandbox relaxed --show-traceSpin up a local XCVM devnet:nix run "github:ComposableFi/composable/7c30cf1a3edb62e0475511a684ad030f4dcf9c03#devnet-xcvm" -LView the docs:nix run ".#docs-server"Run this without Nix in Docker.docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/7c30cf1a3edb62e0475511a684ad030f4dcf9c03#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"NOTE: You can swap |
|
Also, what's the purpose of these extrinsics? The relevant clickup ticket is empty: https://app.clickup.com/t/34qhnj1 |
|
Also please run |
the idea to use lend and unlend instead of deposit and withdraw i think is because there is already deposit_collateral and withdraw_collateral. rn, Lending pallet doesnt have extrinsic to work with vault. it needs to use vault extrinsics to deposit or withdraw. we want to have these functions here in order to pause them if necessary. |
makes sense, but I see no reason why they couldn't be called
|
|
imho it is good to have pallet methods for that. so i never seen such naming before. can we have diffeerent names which are more common? |
|
lend does not happen when you call method. deposit and withdraw happen. so please rename. |
kevin-composable
left a comment
There was a problem hiding this comment.
This looks perfect; vault_deposit and vault_withdraw sound good to me
vimukthi-git
left a comment
There was a problem hiding this comment.
LGTM :) Though I'm unable to provide much in-depth review or insight without a design/spec or details in the task linked.
… tests add extra pallet for lender vault fix styling
897af68 to
34679dd
Compare
add lend and unlend functions to Lending pallet, fixing tests