Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solidoracle/erc4626-rs
https://github.com/solidoracle/erc4626-rs
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/solidoracle/erc4626-rs
- Owner: solidoracle
- Created: 2023-11-18T11:13:07.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-26T08:47:00.000Z (9 months ago)
- Last Synced: 2024-08-02T11:22:27.851Z (4 months ago)
- Language: Rust
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-stylus - Stylus ERC4626 - A sample implementation of OpenZeppelin ERC4626 contract in Rust (Examples / Examples built with cargo-stylus v0.4.x and stylus-sdk v0.5.x)
README
# đ¤ML-ERC46 for Arbitrum Stylus
## Overview
Sample implementation of OpenZeppelin ERC4626 contract in Stylus using Rust which aims to enable heavy AI/ML computation for DeFi projects that want to enrich their smart vaults with machine learning capabilites that are historically performed offchain.
It provides a library with augmented ML capabilites thanks to the rustlearn crate, a machine learning package for Rust as seen in the rebalance function.
Smart Vault deployment address:
https://stylus-testnet-explorer.arbitrum.io/address/0x6982aA8dB18E7153c614765dA4A581135e9Bf4a8## How to use
Insert your private key in an .env file using```bash
cargo stylus check
cargo stylus deploy --private-key-path=./.env
```## Test
You can interact with the smart contract on Arbitrum Stylus Testnet.```bash
cd hardhat
yarn install
yarn hardhat run scripts/initialize.js
```