#vault #tokens #astroport #pool #contract #locked #reward

bin+lib locked-astroport-vault

Auto compounding vault, with a custom length lockup, for an Astroport pool

7 releases

0.4.2 Mar 6, 2024
0.4.1 Feb 15, 2024
0.2.0 Nov 3, 2023
0.1.0 Sep 27, 2023
0.1.0-rc.2 Aug 29, 2023

#8 in #locked

Download history 5/week @ 2024-01-13 8/week @ 2024-01-20 114/week @ 2024-01-27 33/week @ 2024-02-03 398/week @ 2024-02-10 39/week @ 2024-02-17 63/week @ 2024-02-24 244/week @ 2024-03-02 83/week @ 2024-03-09 6/week @ 2024-03-16 53/week @ 2024-03-30 8/week @ 2024-04-06 1/week @ 2024-04-13

62 downloads per month
Used in 2 crates

BUSL-1.1

5.5MB
3K SLoC

Apollo Astroport Vault

This contract is a vault contract that implements the cw-vault-standard. It is an autocompounding vault that takes in Astroport LP tokens as the base token. It claims any rewards from the Astroport generator as well as tokens that are sent directly to the contract (as long as they are present in the contracts config field reward_tokens) and sells these for more of the tokens that comprise the base LP token. It then provides liquidity with these to get more LP tokens and stakes them in the Astroport generator.

This vault has an optional configurable lockup_duration. If this duration is set to some value higher than zero, the deposited funds will be locked this amount of time from when the user redeems their vault tokens.

License

This vault is licensed under the MariaDB Business Source License 1.1. See the LICENSE file for details.

Dependencies

~17MB
~273K SLoC