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

[WIP] Horizon: add escrow and payments #968

Merged
merged 17 commits into from May 20, 2024
Merged

Conversation

tmigone
Copy link
Contributor

@tmigone tmigone commented Apr 12, 2024

No description provided.

@tmigone tmigone changed the title [WIP/Experimental] add escrow and payments [WIP] add escrow and payments Apr 12, 2024
@tmigone tmigone changed the title [WIP] add escrow and payments [WIP] Horizon: add escrow and payments Apr 12, 2024
Copy link

openzeppelin-code bot commented Apr 12, 2024

[WIP] Horizon: add escrow and payments

Generated at commit: c052943e1f35cb97ecc6ce6e2cc96ea3fb78140b

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
4
0
15
43
64
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@Maikol Maikol marked this pull request as draft April 17, 2024 15:06
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (horizon@7aa3798). Learn more about missing BASE report.

Current head 9ab9429 differs from pull request most recent head 65157fb

Please upload reports for the commit 65157fb to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             horizon     #968   +/-   ##
==========================================
  Coverage           ?   92.70%           
==========================================
  Files              ?       46           
  Lines              ?     2370           
  Branches           ?      426           
==========================================
  Hits               ?     2197           
  Misses             ?      173           
  Partials           ?        0           
Flag Coverage Δ
unittests 92.70% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}

// approve a data service to collect funds
function approveCollector(address dataService, uint256 amount) external {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A payer could bypass the thawing by re-approving a collector for a 0 amount.

I think we should not allow re approvals for amounts that are smaller than the current allowance.

If you want to reduce the allowance it should go through the thawing period.

@Maikol Maikol marked this pull request as ready for review May 20, 2024 17:53
@Maikol Maikol merged commit 0cdda26 into horizon May 20, 2024
3 of 7 checks passed
@Maikol Maikol deleted the mde/horizon-escrow-and-payments branch May 20, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants