Skip to content

add example of permitting arbitrary function on contract already defined by defi-kit#9

Open
SecurityIsHard69420666 wants to merge 1 commit intognosisguild:mainfrom
SecurityIsHard69420666:custom-debtor-creditor-function
Open

add example of permitting arbitrary function on contract already defined by defi-kit#9
SecurityIsHard69420666 wants to merge 1 commit intognosisguild:mainfrom
SecurityIsHard69420666:custom-debtor-creditor-function

Conversation

@SecurityIsHard69420666
Copy link
Copy Markdown
Contributor

ChatGPT helped me figure out how to do this.... but I couldn't figure out how to put conditions on the args. I tried:

{
  targetAddress: "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
  signature: "repayWithATokens(address,uint256,uint256)",
  condition: c.eq("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"),
},

but with no luck. i don't necessarily need conditions on repayWithATokens, but I'm still curious for future reference :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant