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

feat: LIDO-87. Rewards manager #25

Merged
merged 77 commits into from
Feb 12, 2024
Merged

Conversation

albertandrejev
Copy link
Member

The rewards manager has a list of supported denoms (e.g. NTRN, STRD, USDC) and target denom (e.g. ATOM or DYDX). It assumes that it receives “proper” denoms (router through the proper IBC route). It has a permissionless handler that swaps supported denoms into a target one on Astroport and sends it to core contract (via “AddRewards” msg)

@albertandrejev albertandrejev changed the base branch from main to feat/puppeteer January 17, 2024 20:12
@albertandrejev albertandrejev marked this pull request as ready for review January 24, 2024 11:09
@albertandrejev albertandrejev self-assigned this Jan 24, 2024
tx.json Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably shouldn't be here

contracts/rewards-manager/src/contract.rs Outdated Show resolved Hide resolved
contracts/rewards-manager/src/contract.rs Show resolved Hide resolved
funds: vec![balance],
});

res = res
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's cheaper and more readable to collect messages and attributes and after the cycle have add_messages and add_attributes

contracts/astroport-exchange-handler/src/contract.rs Outdated Show resolved Hide resolved
contracts/astroport-exchange-handler/src/contract.rs Outdated Show resolved Hide resolved
contracts/astroport-exchange-handler/src/contract.rs Outdated Show resolved Hide resolved
@albertandrejev albertandrejev force-pushed the feat/LIDO-87-rewards-manager branch from fb49422 to 95a9d4c Compare February 9, 2024 10:26
@albertandrejev albertandrejev requested a review from ratik February 9, 2024 10:59
@oldremez oldremez merged commit 9681cd0 into feat/puppeteer Feb 12, 2024
9 checks passed
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.

4 participants