Smart Contract Developer Needed

Job ID: 38600793

Budget: $250 – $750 SGD

We are seeking an experienced smart contract developer to build a flash loan contract based on the TRC20 standard.

Responsibilities:

Contract Development:
1. Develop a flash loan smart contract enabling borrowers to request loans in TRC20 USDT through an integrated user interface (UI will be provided; your responsibility includes integrating the smart contract with the UI). Maximum loan of USDT 5,000 per transaction.

2. Ensure the contract facilitates the transfer of TRC20 USDT to the borrower’s wallet once a service fees of 20% of the loan amount in terms of TRC20 USDT is paid.

3. Implement a repayment mechanism where the borrower must repay the full loan amount within 1 hour.

4. Integrate a fail-safe mechanism to revert the entire transaction if repayment is not made within the allotted time.

Contract Testing:
1. Unit Testing: Create unit tests in JavaScript or Solidity to validate the flash loan functionality.
2. Simulation: Simulate various scenarios where the borrower either repays the loan successfully or fails, ensuring the contract behaves as expected.

Security and Risk Mitigation:
- Reentrancy Protection: Implement Solidity’s `nonReentrant` to safeguard against reentrancy attacks.
- Input Validation: Add thorough validation for input values and wallet addresses to prevent potential exploits.

Deployment:
- Deploy the contract after all testing is successfully completed.

If you have the necessary expertise, we welcome your application.