Skip to content

Commit

Permalink
Update schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
piobab committed Jun 14, 2024
1 parent b41e969 commit 56c1a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
41 changes: 2 additions & 39 deletions schemas/mars-credit-manager/mars-credit-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@
"additionalProperties": false
},
{
"description": "Calls incentive contract to claim all rewards and: - for Default account increments account balance - for HLS account withdraws claimed rewards. HLS accounts have special rules - some assets can't be in the account. For simplicity we withdraw all claimed rewards.",
"description": "Calls incentive contract to claim all rewards and increment account balance",
"type": "object",
"required": [
"claim_rewards"
Expand All @@ -1127,15 +1127,11 @@
"claim_rewards": {
"type": "object",
"required": [
"account_id",
"recipient"
"account_id"
],
"properties": {
"account_id": {
"type": "string"
},
"recipient": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -1715,39 +1711,6 @@
}
},
"additionalProperties": false
},
{
"description": "Send reward amounts of coin from credit manager to recipient by querying balance, claiming rewards, and comparing previous balance to new balance after reward claim - send the diff to the recipient.",
"type": "object",
"required": [
"send_rewards_to_addr"
],
"properties": {
"send_rewards_to_addr": {
"type": "object",
"required": [
"account_id",
"previous_balances",
"recipient"
],
"properties": {
"account_id": {
"type": "string"
},
"previous_balances": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"recipient": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ export type CallbackMsg =
| {
claim_rewards: {
account_id: string
recipient: Addr
}
}
| {
Expand Down Expand Up @@ -407,13 +406,6 @@ export type CallbackMsg =
| {
remove_reentrancy_guard: {}
}
| {
send_rewards_to_addr: {
account_id: string
previous_balances: Coin[]
recipient: Addr
}
}
export type Addr = string
export type HealthState =
| 'healthy'
Expand Down

0 comments on commit 56c1a19

Please sign in to comment.