-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Feature/crosschain lp #456
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
Conversation
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java
Outdated
Show resolved
Hide resolved
core-contracts/Rewards/src/main/java/network/balanced/score/core/rewards/RewardsImpl.java
Outdated
Show resolved
Hide resolved
|
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. |
core-contracts/DAOfund/src/main/java/network/balanced/score/core/daofund/DAOfundImpl.java
Show resolved
Hide resolved
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/AbstractDex.java
Outdated
Show resolved
Hide resolved
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/AbstractDex.java
Show resolved
Hide resolved
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/AbstractDex.java
Show resolved
Hide resolved
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/AbstractDex.java
Outdated
Show resolved
Hide resolved
core-contracts/Router/src/main/java/network/balanced/score/core/router/RouterImpl.java
Show resolved
Hide resolved
core-contracts/StakedLP/src/main/java/network/balanced/score/core/stakedlp/StakedLPImpl.java
Outdated
Show resolved
Hide resolved
score-lib/src/main/java/network/balanced/score/lib/interfaces/base/IRC31Base.java
Show resolved
Hide resolved
score-lib/src/main/java/network/balanced/score/lib/utils/TokenTransfer.java
Outdated
Show resolved
Hide resolved
...lancedToken/src/main/java/network/balanced/score/tokens/balancedtoken/BalancedTokenImpl.java
Show resolved
Hide resolved
score-lib/src/main/java/network/balanced/score/lib/interfaces/tokens/XReceiver.java
Outdated
Show resolved
Hide resolved
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java
Outdated
Show resolved
Hide resolved
AntonAndell
left a comment
There was a problem hiding this 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?
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/DexImpl.java
Outdated
Show resolved
Hide resolved
core-contracts/StakedLP/src/main/java/network/balanced/score/core/stakedlp/StakedLPImpl.java
Outdated
Show resolved
Hide resolved
core-contracts/StakedLP/src/main/java/network/balanced/score/core/stakedlp/StakedLPImpl.java
Outdated
Show resolved
Hide resolved
core-contracts/StakedLP/src/main/java/network/balanced/score/core/stakedlp/StakedLPImpl.java
Outdated
Show resolved
Hide resolved
core-contracts/StakedLP/src/main/java/network/balanced/score/core/stakedlp/StakedLPImpl.java
Outdated
Show resolved
Hide resolved
score-lib/src/main/java/network/balanced/score/lib/utils/TokenTransfer.java
Show resolved
Hide resolved
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/AbstractDex.java
Outdated
Show resolved
Hide resolved
| 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); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
core-contracts/Dex/src/main/java/network/balanced/score/core/dex/IRC31StandardSpokeLpToken.java
Outdated
Show resolved
Hide resolved
score-lib/src/main/java/network/balanced/score/lib/utils/TokenTransfer.java
Outdated
Show resolved
Hide resolved
…n verified on token transfer test
1f487ca to
3155575
Compare
feat: Add option for governance to borrow from dex
| isValidPercent(_slippagePercentage.intValue()); | ||
|
|
||
| Address user = Context.getCaller(); | ||
| addInternal(NetworkAddress.parse(from), Address.fromString(_baseToken), Address.fromString(_quoteToken), _baseValue, _quoteValue, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be valueOf
Description:
Commit Message
see the guidelines for commit messages.
Changelog Entry
Checklist: