Skip to content

Commit

Permalink
Replace PoolAssets with PoolPair
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Aug 20, 2024
1 parent ef6adae commit d2f9993
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 206 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ containers_homes/
# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
**/.cargo-ok
**/*.rs.bk
.devcontainer/

1 change: 1 addition & 0 deletions smart-contracts/osmosis/contracts/cl-vault/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ apollo-cw-asset = { workspace = true }
dex-router-osmosis = {workspace = true}
cw-vault-multi-standard = {git = "https://github.com/quasar-finance/cw-vault-standard", branch ="master", features = ["lockup", "force-unlock"]}
osmosis-test-tube = { workspace = true, optional = true }
quasar-types = { workspace = true }

[dev-dependencies]
proptest = { workspace = true }
60 changes: 8 additions & 52 deletions smart-contracts/osmosis/contracts/cl-vault/schema/cl-vault.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"type": "string"
},
"VaultConfig": {
"description": "VAULT_CONFIG: Base config struct for the contract.",
"type": "object",
"required": [
"dex_router",
Expand All @@ -82,36 +81,16 @@
],
"properties": {
"dex_router": {
"description": "Dex router address",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
},
"performance_fee": {
"description": "Percentage of profit to be charged as performance fee",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"swap_max_slippage": {
"description": "swap max slippage",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"treasury": {
"description": "Account to receive fee payments",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -602,15 +581,13 @@
"additionalProperties": false
},
"Metadata": {
"description": "metadata useful for display purposes",
"type": "object",
"required": [
"name",
"thesis"
],
"properties": {
"name": {
"description": "the name of the vault",
"type": "string"
},
"thesis": {
Expand Down Expand Up @@ -754,7 +731,6 @@
"type": "string"
},
"VaultConfig": {
"description": "VAULT_CONFIG: Base config struct for the contract.",
"type": "object",
"required": [
"dex_router",
Expand All @@ -764,36 +740,16 @@
],
"properties": {
"dex_router": {
"description": "Dex router address",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
},
"performance_fee": {
"description": "Percentage of profit to be charged as performance fee",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"swap_max_slippage": {
"description": "swap max slippage",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"treasury": {
"description": "Account to receive fee payments",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
Expand Down
31 changes: 4 additions & 27 deletions smart-contracts/osmosis/contracts/cl-vault/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,15 +482,13 @@
"additionalProperties": false
},
"Metadata": {
"description": "metadata useful for display purposes",
"type": "object",
"required": [
"name",
"thesis"
],
"properties": {
"name": {
"description": "the name of the vault",
"type": "string"
},
"thesis": {
Expand Down Expand Up @@ -634,7 +632,6 @@
"type": "string"
},
"VaultConfig": {
"description": "VAULT_CONFIG: Base config struct for the contract.",
"type": "object",
"required": [
"dex_router",
Expand All @@ -644,36 +641,16 @@
],
"properties": {
"dex_router": {
"description": "Dex router address",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
},
"performance_fee": {
"description": "Percentage of profit to be charged as performance fee",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"swap_max_slippage": {
"description": "swap max slippage",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"treasury": {
"description": "Account to receive fee payments",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"type": "string"
},
"VaultConfig": {
"description": "VAULT_CONFIG: Base config struct for the contract.",
"type": "object",
"required": [
"dex_router",
Expand All @@ -78,36 +77,16 @@
],
"properties": {
"dex_router": {
"description": "Dex router address",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
},
"performance_fee": {
"description": "Percentage of profit to be charged as performance fee",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"swap_max_slippage": {
"description": "swap max slippage",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
"$ref": "#/definitions/Decimal"
},
"treasury": {
"description": "Account to receive fee payments",
"allOf": [
{
"$ref": "#/definitions/Addr"
}
]
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
Expand Down
Loading

0 comments on commit d2f9993

Please sign in to comment.