Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treasury adapters #204

Merged
merged 54 commits into from
May 10, 2022
Merged

Treasury adapters #204

merged 54 commits into from
May 10, 2022

Conversation

DrPresident
Copy link
Collaborator

Major Changes:
treasury

  • Only does allowances for outgoing
  • Basic Rebalancing (needs refining)
  • Unbonding from adapters
  • Rough start for whitelisted unbonding from treasury

adapter

  • Basic interface for per-asset treasury integration (subject to changes)
  • unbonding - pulling assets from an adapter
  • balance - checking balance on a given asset
  • claiming - collecting funds that have been unbonded
  • updating - regular maintenance handle

treasury_manager

  • Allocates funds among adapters from treasury allowance
  • Rebalancing (needs refining)

rewards_emission

  • Holding treasury allowance for collection for a given target to refill its rewards
  • NOTE - very rough, will refine once swap is ready for integration

scrt_staking

  • Reworked for adapter interface
  • TODO: voting from govt (Authz)?

@DrPresident DrPresident force-pushed the treasury-adapters branch from a9a0ecc to d339708 Compare May 3, 2022 18:36
.gitmodules Outdated Show resolved Hide resolved
contracts/mint/Cargo.toml Show resolved Hide resolved
contracts/mint/src/handle.rs Outdated Show resolved Hide resolved
contracts/oracle/src/query.rs Outdated Show resolved Hide resolved
contracts/rewards_emission/src/state.rs Show resolved Hide resolved
packages/shade_protocol/Cargo.toml Show resolved Hide resolved
packages/shade_protocol/Cargo.toml Outdated Show resolved Hide resolved
packages/shade_protocol/src/dex.rs Show resolved Hide resolved
packages/shade_protocol/src/treasury.rs Show resolved Hide resolved
packages/shade_protocol/src/utils/mod.rs Outdated Show resolved Hide resolved
contracts/oracle/Cargo.toml Outdated Show resolved Hide resolved
contracts/oracle/Cargo.toml Outdated Show resolved Hide resolved
contracts/oracle/src/query.rs Outdated Show resolved Hide resolved
@DrPresident DrPresident merged commit 699b940 into dev May 10, 2022
@DrPresident DrPresident deleted the treasury-adapters branch May 10, 2022 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants