Submissions
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
FEEDBACK
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.
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:
repay_loan
Function:
EInvalidRepaymentAmount
.apply_for_loan
Function:
MIN_LOAN
).Reason for Changes:
# 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 ```
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:
Consistent Naming:
Clarity in Comments:
Consistent Indentation:
Input Validation:
stake
and withdraw
functions to ensure that the provided amounts are valid and within acceptable ranges.Access Control:
Error Handling:
Event Logging:
Efficiency Improvements:
rewardPerToken
function for potential efficiency improvements.Consistent use of Move Types:
Code Structure:
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
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:
Naming Conventions:
Import Statements:
Simplified Function Parameters:
create_fraud_transac
for clarity and brevity.Assert Conditions:
Consistency and 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.
# 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 ```
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:
Consistent Naming:
Clarity in Comments:
Consistent Indentation:
Input Validation:
stake
and withdraw
functions to ensure that the provided amounts are valid and within acceptable ranges.Access Control:
Error Handling:
Event Logging:
Efficiency Improvements:
rewardPerToken
function for potential efficiency improvements.Consistent use of Move Types:
Code Structure:
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.
Hi fesal,
I have made a pull request aims to for improvements on your submission.
Changes Made:
price_y_to_x
to ensure completeness of functionality.Dacade is an open-sourced platform and is created in collaboration with multiple contributors. Go to the repository to start contributing.