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

cowswap trade fees #6277

Merged
merged 7 commits into from Jun 19, 2023
Merged

Conversation

LefterisJP
Copy link
Member

@LefterisJP LefterisJP commented Jun 18, 2023

Display fees in cowswap trades and take them into account in accounting

Before:

2023-06-19_13-24

After
2023-06-19_13-49

@LefterisJP
Copy link
Member Author

Probably lots of tests will fail, especially in decoding due to my changes to the way events are shuffled. Will have to address them

We can now define events of variable length to be preserved in a given
order inside the events list. With this new functionality some weird
uses of the function are also replaced with a single call

Also add a lot more tests for it
Also add test for cowswap accounting with fees
@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #6277 (af3bb23) into develop (137e759) will increase coverage by 0.31%.
The diff coverage is 81.33%.

@@             Coverage Diff             @@
##           develop    #6277      +/-   ##
===========================================
+ Coverage    79.97%   80.28%   +0.31%     
===========================================
  Files         1098     1097       -1     
  Lines       119167   120068     +901     
  Branches     10684    10728      +44     
===========================================
+ Hits         95301    96400    +1099     
+ Misses       22132    21928     -204     
- Partials      1734     1740       +6     
Flag Coverage Δ
backend 79.43% <72.39%> (-0.43%) ⬇️

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

Impacted Files Coverage Δ
...end/app/src/components/dashboard/NetWorthChart.vue 66.27% <ø> (-0.26%) ⬇️
frontend/app/src/premium/setup-interface.ts 10.81% <ø> (+0.28%) ⬆️
frontend/app/src/store/reports/index.ts 9.91% <0.00%> (-0.24%) ⬇️
rotkehlchen/accounting/constants.py 100.00% <ø> (ø)
...lchen/chain/ethereum/modules/cowswap/accountant.py 86.66% <ø> (ø)
...lchen/chain/ethereum/modules/oneinch/v1/decoder.py 65.47% <ø> (ø)
...lchen/chain/ethereum/modules/oneinch/v2/decoder.py 89.09% <ø> (ø)
rotkehlchen/chain/ethereum/modules/weth/decoder.py 94.44% <ø> (ø)
rotkehlchen/chain/evm/contracts.py 76.53% <ø> (+3.06%) ⬆️
rotkehlchen/db/minimized_schema.py 100.00% <ø> (ø)
... and 37 more

... and 41 files with indirect coverage changes

@LefterisJP
Copy link
Member Author

Well this is all green. nice. Cowswap fees go in then.

@LefterisJP LefterisJP merged commit abb5765 into rotki:develop Jun 19, 2023
13 checks passed
@LefterisJP LefterisJP deleted the events_orders_cowswap_fee branch June 19, 2023 14:54
@LefterisJP LefterisJP temporarily deployed to cassette-merge June 19, 2023 14:54 — with GitHub Actions Inactive
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

1 participant