sora-xor / sora2-network

SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
Other
51 stars 23 forks source link

[Tech]: More simplified vaults type creation #1099

Closed ra9mls closed 1 month ago

ra9mls commented 3 months ago

Problem statement

To simply vaults managing process we want to have separate Create extrinsic and separate Update extrinsics for each parameter

Description

Rename old kensetsu.updateRiskParams to kensetsu.create

Definition of Done

  1. Vault type created with kensetsu.create
  2. Create new 5 extrinsics for old parameters (maxLiquidationLot, minimalCollateralDeposit, liquidationRatio, stability fee, debt limit). Debt limit and stability fee already created as separate tasks)
  3. User tries make kensetsu.create and if vault type already created - fail extrinsic
  4. Update docs

Requirements

No response