Skip to content

Conversation

@TRSSMG
Copy link
Collaborator

@TRSSMG TRSSMG commented Oct 8, 2024

Description:

Commit Message

type: commit message

see the guidelines for commit messages.

Changelog Entry

version: <log entry>

Checklist:

  • I have performed a self-review of my own code
  • I have documented my code in accordance with the documentation guidelines
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the unit tests
  • I only have one commit (if not, squash them into one commit).
  • I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

@TRSSMG TRSSMG requested a review from AntonAndell October 8, 2024 14:30
@codecov
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 76.34855% with 57 lines in your changes missing coverage. Please review.

Project coverage is 73.06%. Comparing base (5a059c6) to head (74f8b0f).
Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
...nced/score/core/dex/IRC31StandardSpokeLpToken.java 63.79% 14 Missing and 7 partials ⚠️
.../balanced/score/lib/utils/AddressBranchDictDB.java 0.00% 10 Missing ⚠️
...a/network/balanced/score/core/dex/AbstractDex.java 53.84% 6 Missing ⚠️
...twork/balanced/score/core/rewards/RewardsImpl.java 80.76% 2 Missing and 3 partials ⚠️
.../score/lib/utils/BranchedNetworkAddressDictDB.java 0.00% 5 Missing ⚠️
...twork/balanced/score/core/daofund/DAOfundImpl.java 0.00% 2 Missing ⚠️
.../java/network/balanced/score/core/dex/DexImpl.java 96.77% 1 Missing and 1 partial ⚠️
...ork/balanced/score/core/stakedlp/StakedLPImpl.java 94.11% 2 Missing ⚠️
...balanced/score/lib/utils/NetworkAddressDictDB.java 0.00% 1 Missing and 1 partial ⚠️
...rk/balanced/score/core/rewards/DataSourceImpl.java 66.66% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #456      +/-   ##
============================================
+ Coverage     73.05%   73.06%   +0.01%     
- Complexity     1603     1617      +14     
============================================
  Files           116      120       +4     
  Lines          7686     7752      +66     
  Branches        936      935       -1     
============================================
+ Hits           5615     5664      +49     
- Misses         1667     1681      +14     
- Partials        404      407       +3     
Flag Coverage Δ
java 73.06% <76.34%> (+0.01%) ⬆️

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.

@AntonAndell
Copy link
Collaborator

What do you think creating a library like XCallLib but for token transfers? So that you can just call that in any contract. Which will query the daofund for the fee, check if token is in assetManager else use xTransfer.

Copy link
Collaborator

@AntonAndell AntonAndell left a comment

Choose a reason for hiding this comment

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

Can we make "to" paramerete optional id xTokenFallback deposit?

@TRSSMG TRSSMG changed the title Feature/crosschain lp feat: Feature/crosschain lp Nov 8, 2024
@TRSSMG TRSSMG added the enhancement New feature or request label Nov 8, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Nov 15, 2024
deposit(fromToken, to, _value);
} else {// If no supported method was sent, revert the transaction
String to = params.get("address").asString();
deposit(fromToken, NetworkAddress.valueOf(to), _value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we do this? or any reason you thinks its a bad idea?

}

@External(readonly = true)
public BigInteger depositOfUser(Address _owner, Address _token) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any reason this is not the case? or is there a v2 somewhere?

@AntonAndell AntonAndell force-pushed the feature/crosschain_lp branch from 1f487ca to 3155575 Compare November 29, 2024 05:58
isValidPercent(_slippagePercentage.intValue());

Address user = Context.getCaller();
addInternal(NetworkAddress.parse(from), Address.fromString(_baseToken), Address.fromString(_quoteToken), _baseValue, _quoteValue,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should probably be valueOf

@AntonAndell AntonAndell merged commit 094861e into main Nov 29, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants