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

feat: add deposit functionality to Gateway contract #47

Merged
merged 5 commits into from
Sep 22, 2024
Merged

Conversation

OnahProsperity
Copy link
Collaborator

@OnahProsperity OnahProsperity commented Sep 14, 2024

This commit adds a new function deposit to the Gateway contract, allowing providers to deposit assets. The function requires the amount to be greater than 0, and the asset to be supported. It also requires the provider to approve the Gateway contract on the token of at least the specified amount before calling the function. The function transfers the specified amount of tokens from the sender to the Gateway contract and updates the deposited balances accordingly. The commit also includes tests for the deposit functionality.

closes #45

@OnahProsperity OnahProsperity self-assigned this Sep 14, 2024
@OnahProsperity OnahProsperity added the enhancement New feature or request label Sep 14, 2024
@chibie chibie changed the base branch from main to v1 September 16, 2024 14:11
contracts/Gateway.sol Outdated Show resolved Hide resolved
contracts/Gateway.sol Outdated Show resolved Hide resolved
contracts/interfaces/IGateway.sol Outdated Show resolved Hide resolved
contracts/interfaces/IGateway.sol Outdated Show resolved Hide resolved
contracts/interfaces/IGateway.sol Outdated Show resolved Hide resolved
contracts/interfaces/IGateway.sol Outdated Show resolved Hide resolved
@chibie chibie merged commit 39599b3 into v1 Sep 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provider deposit for onramping on Gateway contract
2 participants