From a0fc44e57148d88dcac47f5a7b9ef1a3671ff29d Mon Sep 17 00:00:00 2001 From: "Muhammad-Jibril B.A. (Khalifa MBA)" Date: Mon, 24 Jun 2024 10:27:27 +0800 Subject: [PATCH 1/5] fix evm mock --- blockchain/modules/ecdp-ussd-engine/src/mock.rs | 2 -- blockchain/modules/ecdp/src/mock.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/blockchain/modules/ecdp-ussd-engine/src/mock.rs b/blockchain/modules/ecdp-ussd-engine/src/mock.rs index 8e35dac0..f7204ff0 100644 --- a/blockchain/modules/ecdp-ussd-engine/src/mock.rs +++ b/blockchain/modules/ecdp-ussd-engine/src/mock.rs @@ -300,8 +300,6 @@ impl module_evm::Config for Runtime { type Runner = module_evm::runner::stack::Runner; type FindAuthor = (); - type Task = (); - type IdleScheduler = (); type WeightInfo = (); } diff --git a/blockchain/modules/ecdp/src/mock.rs b/blockchain/modules/ecdp/src/mock.rs index cd44ea3d..75efaa77 100644 --- a/blockchain/modules/ecdp/src/mock.rs +++ b/blockchain/modules/ecdp/src/mock.rs @@ -261,8 +261,6 @@ impl module_evm::Config for Runtime { type Runner = module_evm::runner::stack::Runner; type FindAuthor = (); - type Task = (); - type IdleScheduler = (); type WeightInfo = (); } From 0fe79e7c60fbf4ac8f4ed06317d1bccdc390993a Mon Sep 17 00:00:00 2001 From: "Muhammad-Jibril B.A. (Khalifa MBA)" Date: Mon, 24 Jun 2024 10:33:35 +0800 Subject: [PATCH 2/5] Update Code of Conduct Update Code of Conduct - No BS #1002 --- CODE_OF_CONDUCT.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index cefccac1..53facc4c 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,11 +5,7 @@ ## Our Pledge In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. +contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender, level of experience, education, socio-economic status, nationality, personal appearance, race, color or religion. ## Our Standards @@ -24,14 +20,11 @@ include: Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery and unwelcome sexual attention or - advances +* The use of sexualized language or imagery and unwelcome sexual attention or advances * Trolling, insulting/derogatory comments, and personal or political attacks * Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities From 77cc7e5e638e9489aa5a1a6de000d3a7060c1a3d Mon Sep 17 00:00:00 2001 From: "Muhammad-Jibril B.A. (Khalifa MBA)" Date: Mon, 24 Jun 2024 10:37:32 +0800 Subject: [PATCH 3/5] Update ecdp.rs --- blockchain/modules/support/src/ecdp.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/blockchain/modules/support/src/ecdp.rs b/blockchain/modules/support/src/ecdp.rs index c34672d8..c5ae48cb 100644 --- a/blockchain/modules/support/src/ecdp.rs +++ b/blockchain/modules/support/src/ecdp.rs @@ -172,23 +172,3 @@ pub trait EcdpUssdManager { /// Get exchange rate of debit units to debit value for a currency_id fn get_debit_exchange_rate(currency_id: CurrencyId) -> ExchangeRate; } - -/// Functionality of Setter ECDP Protocol to be exposed to EVM. -pub trait EcdpSetrManager { - /// Adjust ECDP loan - fn adjust_loan( - who: &AccountId, - collateral_adjustment: Amount, - debit_adjustment: Amount, - ) -> DispatchResult; - /// Close ECDP loan using DEX - fn close_loan_by_dex(who: AccountId, max_collateral_amount: Balance) -> DispatchResult; - /// Get open ECDP corresponding to an account and collateral - fn get_position(who: &AccountId) -> EcdpEcdpPosition; - /// Get liquidation ratio for collateral - fn get_collateral_parameters() -> Vec; - /// Get current ratio of collateral to debit of open ECDP - fn get_current_collateral_ratio(who: &AccountId) -> Option; - /// Get exchange rate of debit units to debit value for a currency_id - fn get_debit_exchange_rate() -> ExchangeRate; -} From cf5fcbd24ac10b68c5556879f36f7ec2b564d821 Mon Sep 17 00:00:00 2001 From: "Muhammad-Jibril B.A. (Khalifa MBA)" Date: Mon, 24 Jun 2024 10:42:23 +0800 Subject: [PATCH 4/5] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 1cd899e0..a2576fe3 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,6 @@ Ethical DeFi Suite is the DeFi powerhouse of the Setheum Network, providing all - `Edfis`: Ethical DeFi Suite - `Edfis Pay`: Decentralised Escrow Payment Protocol - `Edfis Swap Exchange`: AMM (Automated Market Maker) DEX Protocol inspired by Uniswap v3 design - - `Edfis P2P Exchange`: Decentralized P2P Exchange Protocol as a crypto on-off ramp - `Edfis Launchpad`: Launchpad Crowdsales protocol for bootstrapping pools on Edfis Exchange - `Edfis Launchpool`: Launchpool protocol for bootstrapping pools on Edfis Exchange - `Setter`: Unpegged ECDP Stablecoin From 7856b60451f5fe174875e8ef82425f11bcb91043 Mon Sep 17 00:00:00 2001 From: "Muhammad-Jibril B.A. (Khalifa MBA)" Date: Mon, 24 Jun 2024 10:54:41 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2576fe3..d5861c5b 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Ethical DeFi Suite is the DeFi powerhouse of the Setheum Network, providing all #### 1.2.1. Ethical DeFi Projects: - `Edfis`: Ethical DeFi Suite - - `Edfis Pay`: Decentralised Escrow Payment Protocol + - `Edfis Pay`: Decentralised Payment Protocol - `Edfis Swap Exchange`: AMM (Automated Market Maker) DEX Protocol inspired by Uniswap v3 design - `Edfis Launchpad`: Launchpad Crowdsales protocol for bootstrapping pools on Edfis Exchange - `Edfis Launchpool`: Launchpool protocol for bootstrapping pools on Edfis Exchange