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

DAO468 & DAO469: depositAndDelegate & transferAndDelegate functions with tests #14

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

shenshin
Copy link
Contributor

@shenshin shenshin commented Jun 28, 2024

What

  • in stRIF smart contract create 3 new public functions:
    • depositAndDelegate: to stake RIFs to stRIFs + delegate to same address in one tx
    • transferAndDelegate: to transfer stRifs to another account + delegate to same address in one tx
    • transferFromAndDelegate: the same thing including prior approval
  • write test cases for happy \ unhappy paths
  • all tests are passing
  • slither doesnt find any issues

Why

This functions will allow users to stake/transfer and delegate within a single transaction

Ref

DAO-468
DAO-469

Comment

Sorry for 2 tickets within one PR, but all functions are very closely tied together and can hardly be separated

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Contributor

@rodrigoncalves rodrigoncalves left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@TravellerOnTheRun TravellerOnTheRun left a comment

Choose a reason for hiding this comment

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

Looks great to me as per my knowledge!

@shenshin shenshin merged commit ab97e33 into develop Jul 1, 2024
2 checks passed
@shenshin shenshin deleted the stRifOperations branch July 2, 2024 20:09
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.

None yet

3 participants