Skip to content

Commit

Permalink
Merge pull request #162 from informalsystems/ph/minimum-liquidity
Browse files Browse the repository at this point in the history
Add a minimum export floor
  • Loading branch information
p-offtermatt authored Oct 31, 2024
2 parents 0388114 + 733ede8 commit cdad578
Show file tree
Hide file tree
Showing 40 changed files with 2,314 additions and 817 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Allow whitelist admins to register performed liquidity deployments in the Hydro contract.
([\#164](https://github.com/informalsystems/hydro/pull/164))
2 changes: 2 additions & 0 deletions .changelog/unreleased/features/162-minimum-export-floor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add a minimum liquidity request value to proposals.
([\#164](https://github.com/informalsystems/hydro/pull/164))
2 changes: 2 additions & 0 deletions .changelog/unreleased/features/162-tribute-claim-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Adjusts tributes to only be claimable if their proposal received a non-zero fund deployment.
([\#164](https://github.com/informalsystems/hydro/pull/164))
4 changes: 2 additions & 2 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
f2bd09f81b6505500199ab278c6e9227ef60aef9fd2119ae6a4baa0c35a872d6 hydro.wasm
580051b9e5210280bb3d4025378f3ea96e0ba7fade6be1fa02d3aa1f93edb951 tribute.wasm
846fd11a6291b84bfba03a657d90fdbc04d192039b41e86d13f85580e1a4fa13 hydro.wasm
6f10371b19777a2f4c53979a030f2100e77985121e2b01b4cfcfa8a0c83962fd tribute.wasm
Binary file modified artifacts/hydro.wasm
Binary file not shown.
Binary file modified artifacts/tribute.wasm
Binary file not shown.
123 changes: 123 additions & 0 deletions contracts/hydro/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"required": [
"bid_duration",
"description",
"minimum_atom_liquidity_request",
"title",
"tranche_id"
],
Expand All @@ -93,6 +94,9 @@
"description": {
"type": "string"
},
"minimum_atom_liquidity_request": {
"$ref": "#/definitions/Uint128"
},
"title": {
"type": "string"
},
Expand Down Expand Up @@ -365,9 +369,128 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"add_liquidity_deployment"
],
"properties": {
"add_liquidity_deployment": {
"type": "object",
"required": [
"deployed_funds",
"destinations",
"funds_before_deployment",
"proposal_id",
"remaining_rounds",
"round_id",
"total_rounds",
"tranche_id"
],
"properties": {
"deployed_funds": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"destinations": {
"type": "array",
"items": {
"type": "string"
}
},
"funds_before_deployment": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"proposal_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"remaining_rounds": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"round_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"total_rounds": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"tranche_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"remove_liquidity_deployment"
],
"properties": {
"remove_liquidity_deployment": {
"type": "object",
"required": [
"proposal_id",
"round_id",
"tranche_id"
],
"properties": {
"proposal_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"round_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"tranche_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
},
"additionalProperties": false
},
"ProposalToLockups": {
"type": "object",
"required": [
Expand Down
Loading

0 comments on commit cdad578

Please sign in to comment.