-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Collateral Swap Extension #29
Open
sraver
wants to merge
9
commits into
compound-finance:main
Choose a base branch
from
widolabs:collateral-swap-extension
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
87e5fdd
Add Collataral Swap Extension
sraver dac4eb1
Add Arbitrum market
sraver e129994
Update source link
sraver 331e6c7
Update source link to IPFS
sraver 55d5413
Update source link to IPFS
sraver 3a959eb
add transaction permissions
sraver 379291f
Add logs to checkSendTransaction function
barabanovro b41555a
Fix market token symbols
barabanovro c72df4f
Add contract addresses to supportedMarkets
barabanovro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevincheng96 @hayesgm @mykelp I have added the required permission for the app to execute the transaction. Could you verify that it looks fine? I am most interested in the
contract: '$operator'
line, since I'm not sure what the "$operator" placeholder is replaced with.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the trx object does look ok to me.
$operator
is meant to signal your smart contract and you do look to have it specified correctly. What error are you currently getting?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@torreyatcitty thanks, with this changes it should work fine then.
Currently the issue is that the deployed version didn't include the
trx
permissions, so it's failing at the time of actually executing the transaction.On the embedded sandbox it works fine, with or without the permissions, but once deployed it gets blocked without them.
Being this correct, I think next step would be to re-deploy so it takes the right permissions on the prod app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i see, yes the current version on prod does not have the
trx
permission. Will share an updated test build with the newer permission.