Skip to content
Open
Show file tree
Hide file tree
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
145 changes: 67 additions & 78 deletions openapi/deficarrot.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"paths": {
"/v0/crt/mint/{poolToken}": {
"get": {
"operationId": "mint.getMintBlink",
"summary": "Get mint blink",
"operationId": "deficarrot.mint.getMintBlink",
"summary": "Mint",
"description": "Get a blink for mint operations",
"tags": [
"Earn"
Expand All @@ -26,15 +26,11 @@
"schema": {
"type": "string",
"description": "Supported token address or label",
"examples": [
"PYUSD",
"USDT",
"USDC",
"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
]
}
"default": "PYUSD",
"example": "PYUSD"
},
"x-default": "PYUSD",
"example": "PYUSD"
}
],
"responses": {
Expand Down Expand Up @@ -124,11 +120,14 @@
}
}
}
},
"x-mint": {
"href": "api-reference/deficarrot/earn/mint-get"
}
},
"post": {
"operationId": "mint.mint",
"summary": "Mint operation",
"operationId": "deficarrot.mint.mint",
"summary": "Mint",
"description": "Execute a mint operation",
"tags": [
"Earn"
Expand All @@ -141,17 +140,11 @@
"schema": {
"type": "string",
"description": "Supported token address or label",
"example": "USDC",
"default": "USDC",
"examples": [
"USDC",
"PYUSD",
"USDT",
"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
]
}
"default": "PYUSD",
"example": "PYUSD"
},
"x-default": "PYUSD",
"example": "PYUSD"
},
{
"name": "percentage",
Expand All @@ -163,7 +156,11 @@
"description": "The percentage of funds to use (alternative to amount)",
"default": 10,
"example": 10
}
},
"allowEmptyValue": true,
"allowReserved": true,
"x-default": 10,
"example": 10
},
{
"name": "amount",
Expand All @@ -172,7 +169,9 @@
"type": "number",
"minimum": 0,
"description": "The amount to use. Human-readable value, e.g. 0.1 USDC"
}
},
"allowEmptyValue": true,
"allowReserved": true
}
],
"requestBody": {
Expand All @@ -187,29 +186,20 @@
"enum": [
"transaction"
],
"example": "transaction",
"default": "transaction"
"default": "transaction",
"example": "transaction"
},
"account": {
"type": "string",
"description": "The public key of the account that executes the transaction",
"example": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176",
"default": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
"default": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176",
"example": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}
},
"required": [
"type",
"account"
]
},
"examples": {
"mint": {
"summary": "Mint transaction",
"value": {
"type": "transaction",
"account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}
}
}
}
}
Expand Down Expand Up @@ -268,13 +258,16 @@
}
}
}
},
"x-mint": {
"href": "api-reference/deficarrot/earn/mint-post"
}
}
},
"/v0/crt/redeem/{poolToken}": {
"get": {
"operationId": "redeem.getRedeemBlink",
"summary": "Get redeem blink",
"operationId": "deficarrot.redeem.getRedeemBlink",
"summary": "Redeem",
"description": "Get a blink for redeem operations. Please note that the amount you redeem will be the amount of the stable coin you input, not the amount of the CRT token you will receive. Also there might be a small difference in the amount you receive due to the price of the stable coin and the CRT token and a withdrawal fee. Please check protocol documentation for more details.",
"tags": [
"Earn"
Expand All @@ -287,15 +280,11 @@
"schema": {
"type": "string",
"description": "Supported token address or label",
"examples": [
"PYUSD",
"USDT",
"USDC",
"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
]
}
"default": "PYUSD",
"example": "PYUSD"
},
"x-default": "PYUSD",
"example": "PYUSD"
}
],
"responses": {
Expand Down Expand Up @@ -385,11 +374,14 @@
}
}
}
},
"x-mint": {
"href": "api-reference/deficarrot/earn/redeem-get"
}
},
"post": {
"operationId": "redeem.redeem",
"summary": "Redeem operation",
"operationId": "deficarrot.redeem.redeem",
"summary": "Redeem",
"description": "Execute a redeem operation",
"tags": [
"Earn"
Expand All @@ -402,17 +394,11 @@
"schema": {
"type": "string",
"description": "Supported token address or label",
"example": "USDC",
"default": "USDC",
"examples": [
"USDC",
"PYUSD",
"USDT",
"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
]
}
"default": "PYUSD",
"example": "PYUSD"
},
"x-default": "PYUSD",
"example": "PYUSD"
},
{
"name": "percentage",
Expand All @@ -424,7 +410,11 @@
"description": "The percentage of funds to use (alternative to amount)",
"default": 10,
"example": 10
}
},
"allowEmptyValue": true,
"allowReserved": true,
"x-default": 10,
"example": 10
},
{
"name": "amount",
Expand All @@ -433,7 +423,9 @@
"type": "number",
"minimum": 0,
"description": "The amount to use. Human-readable value, e.g. 0.1 USDC"
}
},
"allowEmptyValue": true,
"allowReserved": true
}
],
"requestBody": {
Expand All @@ -448,29 +440,20 @@
"enum": [
"transaction"
],
"example": "transaction",
"default": "transaction"
"default": "transaction",
"example": "transaction"
},
"account": {
"type": "string",
"description": "The public key of the account that executes the transaction",
"example": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176",
"default": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
"default": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176",
"example": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}
},
"required": [
"type",
"account"
]
},
"examples": {
"redeem": {
"summary": "Redeem transaction",
"value": {
"type": "transaction",
"account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}
}
}
}
}
Expand Down Expand Up @@ -529,8 +512,14 @@
}
}
}
},
"x-mint": {
"href": "api-reference/deficarrot/earn/redeem-post"
}
}
}
},
"x-mcp": {
"enabled": true
}
}
Loading