defi_loan_build · Build a loan step to sign yourself
may change things: you confirm before it runsThe unsigned transactions for a loan against a stock token on the lending venue: open (post collateral and draw USDG), draw (more against what is posted), or repay. Every step checked by the door: the approval goes to the venue for exactly the collateral, every call goes to the venue, the desk's fee goes to the operations wallet. You sign and send. Recorded on the door's log, not graded.
Input schema
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"open",
"draw",
"repay"
],
"description": "open, draw or repay."
},
"market": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "The market id or the collateral's symbol, from defi_loans."
},
"tokens": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "open only: how many tokens to post, a plain decimal."
},
"usd": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"description": "Dollars to draw or repay, or max."
},
"from": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Your own wallet address: the one that will sign. Nothing is done with it but building the calls."
}
},
"required": [
"kind",
"market",
"usd",
"from"
],
"additionalProperties": false
}