The JSDoc examples for supply(), withdraw(), borrow(), and repay() show using supplier or borrower fields, but the actual TypeScript types require sender. Took me a bit to figure out why my code wasn't working.
Example from JSDoc:
supply({ supplier: evmAddress('0x...'), ... })
What actually works:
supply({ sender: evmAddress('0x...'), ... })
Using @aave/client 0.9.2
The JSDoc examples for supply(), withdraw(), borrow(), and repay() show using supplier or borrower fields, but the actual TypeScript types require sender. Took me a bit to figure out why my code wasn't working.
Example from JSDoc:
supply({ supplier: evmAddress('0x...'), ... })
What actually works:
supply({ sender: evmAddress('0x...'), ... })
Using @aave/client 0.9.2