Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions roles/creditor_debtor/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ export default [
market: "Core",
targets: ["USDC", "WETH"],
}),

//The above 2 permissions are defined by defi-kit, but here's how
//you can permit an arbitrary function on a contract already defined by defi-kit.
//(if the contract is not defined by defi-kit, refer to and mimic the eth_wrapping example role)
{
targetAddress: "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", //AAVE Mainnet v3 Pool, can't go in contracts.ts or it'll conflict
signature: "repayWithATokens(address,uint256,uint256)",
},
] satisfies Permissions;