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
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 18 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[workspace]
members = [
"contracts/accounts/*",
"contracts/libraries/*",
"contracts/encoders/*",
"contracts/authorization",
"contracts/processor",
"contracts/testing/*",
"contracts/program-registry",
"contracts/middleware/type-registries/osmosis/osmo-26-0-0",
"contracts/middleware/broker",
"contracts/middleware/asserter",
"contracts/middleware/verification-gateway",
"packages/*",
"program-manager",
"e2e",
"examples/*",
"deployment/scripts/*",
"contracts/accounts/*",
"contracts/libraries/*",
"contracts/encoders/*",
"contracts/authorization",
"contracts/processor",
"contracts/testing/*",
"contracts/program-registry",
"contracts/middleware/type-registries/osmosis/osmo-26-0-0",
"contracts/middleware/broker",
"contracts/middleware/asserter",
"contracts/middleware/verification-gateway",
"packages/*",
"program-manager",
"e2e",
"examples/*",
"deployment/scripts/*",
]
resolver = "2"

Expand Down Expand Up @@ -95,11 +95,12 @@ valence-clearing-queue = { path = "contracts/libraries/clearing-qu

# middleware
valence-middleware-osmosis = { path = "contracts/middleware/type-registries/osmosis/osmo-26-0-0", features = [
"library",
"library",
] }
valence-middleware-broker = { path = "contracts/middleware/broker", features = ["library"] }
valence-middleware-asserter = { path = "contracts/middleware/asserter", features = ["library"] }
valence-mars-lending = { path = "contracts/libraries/mars-lending", features = ["library"] }
valence-elys-lending = { path = "contracts/libraries/elys-lending", features = ["library"] }

# our packages
valence-account-utils = { path = "packages/account-utils" }
Expand Down
3 changes: 3 additions & 0 deletions contracts/libraries/elys-lending/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
schema = "run --bin schema"
29 changes: 29 additions & 0 deletions contracts/libraries/elys-lending/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "valence-elys-lending"
authors.workspace = true
edition.workspace = true
license.workspace = true
version.workspace = true
repository.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]

[features]
# use library feature to disable all instantiate/execute/query exports
library = []

[dependencies]
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cw-ownable = { workspace = true }
cosmos-sdk-proto = { workspace = true }
cw-storage-plus = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
valence-macros = { workspace = true }
valence-library-utils = { workspace = true }
valence-library-base = { workspace = true }
valence-lending-utils = { workspace = true }
valence-account-utils = { workspace = true }
18 changes: 18 additions & 0 deletions contracts/libraries/elys-lending/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Elys Lending library

The **Valence Elys Lending** library enables lending on Elys from a **input account**. Also, the library allows **withdrawing lent assets** from the **input account** on Elys and depositing the withdrawed tokens into an **output account**. Additionally, users can **claim rewards** from the **input account**, and the rewards will also be sent to the **output account** upon claiming them.

## Configuration

The library is configured on instantiation via the `LibraryConfig` type.

```rust
pub struct LibraryConfig {
/// Address of the input account
pub input_addr: LibraryAccountType,
/// Address of the output account
pub output_addr: LibraryAccountType,
/// ID of the pool we are going to lend to
pub pool_id: Uint64,
}
```
Loading