Repay borrowed tokens to a market in order to reduce or eliminate debt.
A Morpho Market is a primitive lending pool that pairs one collateral asset with one loan asset. Each market is isolated (meaning risks are contained within each individual market), immutable (cannot be changed after deployment), and will persist as long as the blockchain it is deployed on is live.
Required Allowances
In order to make this transaction, token allowances need to be set for the following contracts.
MorphoMarketAmount of the token to repay to the market. If set to 'ALL', all debt plus interest will be paid back if the user has a sufficient token balance in their wallet.
1.5
The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
"0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4"
arbitrum, base, ethereum The address of the transaction sender.
"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
"MORPHO_REPAY"The address on behalf of whom the repayment is made. Defaults to sender.
An optional field for callback byte data that will be triggered upon successful repaying of debt.
Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
Successful Response
The unsigned transaction data. User must sign and broadcast to network.