Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero transfer check during refund #55

Merged
merged 5 commits into from
Dec 9, 2024
Merged

Conversation

OnahProsperity
Copy link
Collaborator

@OnahProsperity OnahProsperity commented Nov 20, 2024

This PR
This pull request includes several updates to address changes, build information, and contract implementation. The most significant changes involve updating the addresses and build information for various contracts and ensuring consistency across the project files.

Updates to addresses and build information:

Updates to build information:

  • Updated build information references in multiple .dbg.json files to point to the new build-info file:
    • artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json
    • artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json
    • artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json
    • artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json
    • artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json
    • artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json
    • artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json
    • artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json
    • artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json
    • artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json
    • artifacts/contracts/Gateway.sol/Gateway.dbg.json
    • artifacts/contracts/GatewaySettingManager.sol/GatewaySettingManager.dbg.json
    • artifacts/contracts/interfaces/IGateway.sol/IGateway.dbg.json
    • artifacts/contracts/mocks/MockUSDC.sol/MockUSDT.dbg.json

Contract logic update:

  • contracts/Gateway.sol: Modified the logic to transfer the refund fee to the treasury if the fee is greater than 0.

closes #43

@OnahProsperity OnahProsperity added bug Something isn't working enhancement New feature or request deployment Deployment task labels Nov 20, 2024
Copy link
Contributor

@chibie chibie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this upgrade be done across all networks?

@chibie chibie merged commit 71c010a into main Dec 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployment Deployment task enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Refund Function to Skip Treasury Transfer for Zero Fee
2 participants