user-avatar
b
blockend_dev
Joined
icon image
Sui Community
12.5 REP
5 Feedbacks
1 Submission

Submissions

12.5 REP
Submitted

This is transaction tracker designed to monitor and manage transactions within sui network. It provides real-time visibility into transaction history, allowing users to track the flow of assets and verify transaction details securely

70Points
1 Feedbacks

FEEDBACK

9.75 REP
Submitted

The project outlined is a microfinance system on the SUI blockchain, focusing on savings and lending functionalities. It allows users to create accounts for saving SUI tokens, apply for loans with interest rates, and manage repayments. The system tracks user savings, loan balances, credit scores, and transaction histories, utilizing smart contracts for operations like depositing savings, borrowing loans, repaying loans, and calculating interest. This decentralized finance application aims to facilitate financial inclusion and accessibility within the blockchain ecosystem.

80Points
2 Feedbacks
12.5 REP
Feedback

Hi ogolaevance5,

I have made a pull request that introduces enhancements to the microfinance smart contract, specifically targeting the repay_loan and apply_for_loan functions. These improvements aim to enhance the functionality, reliability, and readability of the contract.

Changes Made:

  1. repay_loan Function:

    • Removed unnecessary assertion for a positive repayment amount to prevent throwing EInvalidRepaymentAmount.
    • Simplified the logic for updating the loan status to "Repaid" if the loan amount becomes zero.
    • Ensured clear and appropriate assertions and validations for loan repayment.
  2. apply_for_loan Function:

    • Added validation to ensure that the loan amount is not lower than the minimum loan amount (MIN_LOAN).
    • Removed redundant assertion for the existence of the user account as it's already checked before the loan request creation.
    • Ensured clarity of purpose by removing redundant comments and ensuring straightforward logic.

Reason for Changes:

  • The enhancements aim to improve the reliability and security of the microfinance system by ensuring proper validation, maintaining accurate repayment records, and updating loan statuses appropriately.
  • By enforcing a minimum loan amount requirement and simplifying code logic, the contract becomes more robust and easier to understand and maintain.
6.25 SUI
6.25 REP
174 REP
Submitted

# Valuefy A collection of three DEFI contracts, namely Staking, Lending Pool, and Vault, which are required as the first step in developing a DEFI protocol. ### Lending Pool Contract Create a pool contract that accepts deposit from lenders and borrow money to the borrowers - Lenders can lend any amount of money and earn some interest for it. - User or borrower can borrow some amount of tokens (limited) , and pay back with interest for some time period. - Interest is calculated according the interest rate and borrowing time peroid - Lender can withdraw the amount later with extra interest earning - Other functions can be called to determine the balance at any point of time , and the rewards earned ### Vault Contract Sharing of Yield For the no. of shares owned - user can deposit their money - Some shares are minted according to the value deposited - Vault generate some yield by a puropose and the value of share increases - user can withdraw the amount by burning those share at any point of time . ### Staking Contract Rewards user for staking their tokens in the contract - User can withdraw and deposit at an point of time - Tokens Earned can be withdrawed any time - Rewards are calculated with reward rate and time period staked for - The balance and reward earned can be checked at any point of time ### Inspiration - Sui is a blockchain focused on mainstream adoption, and we are developing DEFI contracts to elevate Sui's mission to the next level of DEFI. We hope to make this the best library for DEFI contracts on the Sui Blockchain. ### The problem we're solving - The project aims to address the need for DEFI (Decentralized Finance) capabilities on the Sui blockchain platform. DEFI has gained significant popularity in the blockchain space, offering various financial services such as lending, borrowing, staking, and more, without the need for intermediaries. - The importance of tackling this problem lies in the growing demand for DEFI services and the potential impact it can have on the blockchain ecosystem. DEFI provides financial inclusivity, accessibility, and transparency to individuals worldwide, empowering them to participate in decentralized financial activities. - By developing a collection of DEFI contracts, including a lending pool, a vault, and staking, the project aims to provide the foundation for a robust DEFI ecosystem on Sui. This not only benefits existing developers and users but also attracts new participants to the Sui network, increasing its adoption and expanding its use cases. ### Technoligies used - zkLogin - Move Languag - React - Sui Blockchain ### Future features - Expansion of Contract Collection: The next step for DEFI Sui would be to continue adding more contracts to the existing collection. This expansion can include additional DEFI protocols such as decentralized exchanges, yield farming, or liquidity mining. By broadening the range of available contracts, DEFI Sui can cater to a wider array of use cases and attract more developers and users to the platform. ### πŸ’» Local Development - Clone the repository - Then move into the frontend folder ```sh cd frontend ``` - install dependencies using **yarn** or **npm** ```sh npm install or yarn ``` - start the development server ```sh npm run dev or yarn dev ``` - build with production mode ```sh npm run build or yarn build ```

60Points
3 Feedbacks
12.5 REP
Feedback

Hi Galien,

I've made several enhancements to the Staking Move contract to improve its clarity, security, and overall performance. Below are the key changes implemented:

  1. Consistent Naming:

    • Ensured consistent naming conventions for variables, functions, and comments for improved readability.
  2. Clarity in Comments:

    • Added comments to explain the purpose and functionality of each major section of the code.
  3. Consistent Indentation:

    • Maintained consistent indentation throughout the code for better code structure.
  4. Input Validation:

    • Implemented input validation in the stake and withdraw functions to ensure that the provided amounts are valid and within acceptable ranges.
  5. Access Control:

    • Added access control modifiers to restrict certain functions to authorized users only.
  6. Error Handling:

    • Implemented error-handling mechanisms, especially when interacting with external resources like tokens.
  7. Event Logging:

    • Added event logging to keep track of important contract activities.
  8. Efficiency Improvements:

    • Reviewed the calculations in the rewardPerToken function for potential efficiency improvements.
  9. Consistent use of Move Types:

    • Ensured consistency in the use of Move types, such as addresses and tokens.
  10. Code Structure:

    • Organized the code into logical sections and grouped related functionality together.
Submitted

Decentralized application on the Sui blockchain designed to improve the process of reporting fraudulent transactions. The problem Defraud solves Problems: Many transactions: less effective control At least 5 documents are sended between actors: confirm the identity, prove the fraud, verify the transaction and when sending the refund Actors and step-by-step progress: this process involves 5 actors (Banks, Clients, Retailers, Refunder (often the bank group), Police authority), all have to wait to act one after the other, and some retailers refund their customers and never get their money back Time: a complete processing between 1 week and 6 months Solutions: Actors management: 5 actors, 3 capabilities in the module Funds management: the refund is stored on the contract and several conditions must be met to recover the funds Security: access to the contract is highly controlled, very few cheating possible, none of them without a signature Speed: from 1 week to 6 months to… 1 day at best Documents: from 5 documents to none required

90Points
4 Feedbacks
12.5 REP
Feedback

Refactoring and Code Quality Improvements

Hi Coolestnick,

I hope this message finds you well. I've recently reviewed the code in the defraud::defraud module and noticed a few opportunities for improvement in terms of readability and maintainability. I've made some changes in the code to enhance its quality and adhere to best practices.

Here is a summary of the changes:

  1. Naming Conventions:

    • I renamed error constants and struct fields to follow the snake_case naming convention for consistency.
  2. Import Statements:

    • I combined import statements to improve readability and make the code more concise.
  3. Simplified Function Parameters:

    • I simplified function parameters in create_fraud_transac for clarity and brevity.
  4. Assert Conditions:

    • I adjusted assert conditions in several places to ensure correctness and improve code robustness.
  5. Consistency and Readability:

    • I made minor adjustments for better consistency and improved overall code readability.

Feel free to review the changes and let me know your thoughts. I believe these modifications will enhance the codebase's maintainability and make it more accessible for future development.

174 REP
Submitted

# Valuefy A collection of three DEFI contracts, namely Staking, Lending Pool, and Vault, which are required as the first step in developing a DEFI protocol. ### Lending Pool Contract Create a pool contract that accepts deposit from lenders and borrow money to the borrowers - Lenders can lend any amount of money and earn some interest for it. - User or borrower can borrow some amount of tokens (limited) , and pay back with interest for some time period. - Interest is calculated according the interest rate and borrowing time peroid - Lender can withdraw the amount later with extra interest earning - Other functions can be called to determine the balance at any point of time , and the rewards earned ### Vault Contract Sharing of Yield For the no. of shares owned - user can deposit their money - Some shares are minted according to the value deposited - Vault generate some yield by a puropose and the value of share increases - user can withdraw the amount by burning those share at any point of time . ### Staking Contract Rewards user for staking their tokens in the contract - User can withdraw and deposit at an point of time - Tokens Earned can be withdrawed any time - Rewards are calculated with reward rate and time period staked for - The balance and reward earned can be checked at any point of time ### Inspiration - Sui is a blockchain focused on mainstream adoption, and we are developing DEFI contracts to elevate Sui's mission to the next level of DEFI. We hope to make this the best library for DEFI contracts on the Sui Blockchain. ### The problem we're solving - The project aims to address the need for DEFI (Decentralized Finance) capabilities on the Sui blockchain platform. DEFI has gained significant popularity in the blockchain space, offering various financial services such as lending, borrowing, staking, and more, without the need for intermediaries. - The importance of tackling this problem lies in the growing demand for DEFI services and the potential impact it can have on the blockchain ecosystem. DEFI provides financial inclusivity, accessibility, and transparency to individuals worldwide, empowering them to participate in decentralized financial activities. - By developing a collection of DEFI contracts, including a lending pool, a vault, and staking, the project aims to provide the foundation for a robust DEFI ecosystem on Sui. This not only benefits existing developers and users but also attracts new participants to the Sui network, increasing its adoption and expanding its use cases. ### Technoligies used - zkLogin - Move Languag - React - Sui Blockchain ### Future features - Expansion of Contract Collection: The next step for DEFI Sui would be to continue adding more contracts to the existing collection. This expansion can include additional DEFI protocols such as decentralized exchanges, yield farming, or liquidity mining. By broadening the range of available contracts, DEFI Sui can cater to a wider array of use cases and attract more developers and users to the platform. ### πŸ’» Local Development - Clone the repository - Then move into the frontend folder ```sh cd frontend ``` - install dependencies using **yarn** or **npm** ```sh npm install or yarn ``` - start the development server ```sh npm run dev or yarn dev ``` - build with production mode ```sh npm run build or yarn build ```

60Points
3 Feedbacks
12.5 REP
Feedback

Hi Galien,

I've made several enhancements to the Staking Move contract to improve its clarity, security, and overall performance. Below are the key changes implemented:

  1. Consistent Naming:

    • Ensured consistent naming conventions for variables, functions, and comments for improved readability.
  2. Clarity in Comments:

    • Added comments to explain the purpose and functionality of each major section of the code.
  3. Consistent Indentation:

    • Maintained consistent indentation throughout the code for better code structure.
  4. Input Validation:

    • Implemented input validation in the stake and withdraw functions to ensure that the provided amounts are valid and within acceptable ranges.
  5. Access Control:

    • Added access control modifiers to restrict certain functions to authorized users only.
  6. Error Handling:

    • Implemented error-handling mechanisms, especially when interacting with external resources like tokens.
  7. Event Logging:

    • Added event logging to keep track of important contract activities.
  8. Efficiency Improvements:

    • Reviewed the calculations in the rewardPerToken function for potential efficiency improvements.
  9. Consistent use of Move Types:

    • Ensured consistency in the use of Move types, such as addresses and tokens.
  10. Code Structure:

    • Organized the code into logical sections and grouped related functionality.
6.25 SUI
6.25 REP
Submitted

DacadeDEX is a decentralized exchange (DEX) module designed for use within the SUI blockchain ecosystem. This module facilitates the creation, management, and execution of token swaps and liquidity provisions in a decentralized manner. Inspired by Uniswap's constant product formula, DacadeDEX ensures fair and efficient trading within the SUI blockchain.

100Points
3 Feedbacks
12.5 REP
Feedback

Hi fesal,

I have made a pull request aims to for improvements on your submission.

Changes Made:

  1. Replaced custom module imports with standard Move language imports for better compatibility and maintainability.
  2. Renamed functions and variables to improve clarity and consistency across the codebase.
  3. Added missing view function price_y_to_x to ensure completeness of functionality.
  4. Corrected comments to accurately reflect function behavior and purpose.
  5. Updated function signatures to adhere to Move syntax conventions for better readability and maintainability.
  6. Removed unnecessary struct drop function to simplify the codebase.
  7. Utilized standard library constants and functions where applicable to improve code efficiency and reliability.
  8. Ensured consistency in error code naming conventions and ranges for better code organization and understanding.