Skip to content
Open

Dev #162

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
2bcb45a
error status
belbix Dec 20, 2021
17dc5c7
error status2
belbix Dec 20, 2021
619677c
fix npe
belbix Dec 20, 2021
5915a7c
add calculation profit a.k.a yield (wip)
Dec 22, 2021
ccd7c51
Merge remote-tracking branch 'origin/dev' into calculation_yield
Dec 23, 2021
d898180
add new endpoint
Dec 23, 2021
2a65252
fix null, add optional parameter end
Dec 27, 2021
aa46d63
Merge pull request #153 from harvestfi/calculation_yield
belbix Dec 28, 2021
bfb994c
fix output param for getReserves in Kyber contracts
alexandersazonof Jan 7, 2022
d985695
Merge pull request #154 from harvestfi/fix_problem_with_kyber
belbix Jan 7, 2022
e26a2fc
fix problem with PriceRepository.deleteAllBefore
alexandersazonof Jan 10, 2022
e2938be
fix problem with UniswapParser and update some logs
alexandersazonof Jan 12, 2022
c705077
Merge pull request #155 from harvestfi/fix_problem_with_price_cleaner
belbix Jan 13, 2022
e850da0
added check status for tx receipt
alexandersazonof Jan 13, 2022
95c4008
Merge pull request #156 from harvestfi/fix_problem_with_uniswap_parser
belbix Jan 13, 2022
4b3f8ad
added new endpoint for fetching unique owner addresses by network
alexandersazonof Jan 31, 2022
4e69d4f
Merge pull request #158 from harvestfi/fetch_unique_address_by_network
belbix Jan 31, 2022
0501d21
added new tasks for fetching vaults and pools from harvest api
alexandersazonof Feb 6, 2022
c5d953f
fix errors, change logic for filter transactions
alexandersazonof Feb 10, 2022
5821154
Merge pull request #159 from harvestfi/fetch_vaults_and_pools
belbix Feb 11, 2022
f066a28
Fetch transactions from covalenthq api
alexandersazonof Feb 21, 2022
42cca83
Resolve problem with covalnthq API
alexandersazonof Feb 28, 2022
ea6e9b5
Change logic save transaction in db
alexandersazonof Feb 28, 2022
d667c09
Added sharePrice and tokenPrice
alexandersazonof Mar 1, 2022
cdba053
Calculate token price
alexandersazonof Mar 2, 2022
bbd2bf8
Find empty uniPairsToToken
alexandersazonof Mar 3, 2022
1de9c7b
Resolve problem with price
alexandersazonof Mar 5, 2022
86535ba
Calculate price
alexandersazonof Mar 6, 2022
5aecb03
Fix problem with calculate profit
alexandersazonof Mar 7, 2022
e0be296
Add calculate price for curve and balancer
alexandersazonof Mar 10, 2022
c83eb61
Change application.yml
alexandersazonof Mar 10, 2022
0539ff6
Add new endpoint for calculate vault profit
alexandersazonof Mar 10, 2022
f3492e2
Add new vaults for calculate profit
alexandersazonof Mar 10, 2022
15c19f7
Change profit endpoint
alexandersazonof Mar 13, 2022
1040a16
Add new endpoint for getting profit
alexandersazonof Mar 14, 2022
56e5f57
Change price calculate and add network to endpoint
alexandersazonof Mar 15, 2022
bb68c68
Fix problem with matic parse transactions
alexandersazonof Mar 17, 2022
355cd80
Fix problem with calculate price for matic vaults
alexandersazonof Mar 19, 2022
54d63a8
Add new unipair for bsc, fix problem with constant and calculate pric…
alexandersazonof Mar 27, 2022
c1ebb32
Fix problem with calculate price Denarius and Aureus
alexandersazonof Apr 4, 2022
4a3c96a
Fix problem with NaN
alexandersazonof Apr 4, 2022
1c06fba
Added support for UniSwapV3
alexandersazonof Apr 4, 2022
c6d64da
Parse uniswapv3 event log
alexandersazonof Apr 6, 2022
44078ee
Fix problem with curve
alexandersazonof Apr 8, 2022
4657e50
Fix problem with iFarm vault and try to update vaults and pools from …
alexandersazonof Apr 9, 2022
fa5d33f
Try fix problem with save
alexandersazonof Apr 9, 2022
67c8d04
Added logs for check id
alexandersazonof Apr 9, 2022
b27b11b
Added logs for check id
alexandersazonof Apr 9, 2022
f0ce6d5
Try resolve problem with max id for contract
alexandersazonof Apr 9, 2022
064f845
Try resolve problem with max id for contract
alexandersazonof Apr 9, 2022
cefc4ef
Try resolve problem with save contract
alexandersazonof Apr 9, 2022
148f286
Try resolve problem with save vault
alexandersazonof Apr 10, 2022
d9e4b45
Added log
alexandersazonof Apr 10, 2022
fe6c8d4
Fix problem with decode logs
alexandersazonof Apr 10, 2022
54bd1b9
Change logic for handle event for profit and generate id for eth_vaults
alexandersazonof Apr 22, 2022
a3073e1
Add logs for result from harvest api
alexandersazonof Apr 24, 2022
26f8d4d
Add test request
alexandersazonof Apr 24, 2022
1d467c6
Remove test request and fix error with NoClassDefFoundError
alexandersazonof Apr 24, 2022
fc87a3a
Try to find problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
3fdbdf0
Try to find problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
2c20d76
Try to find problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
28481a0
Update maven dependency plugin to 3.0.2
alexandersazonof Apr 26, 2022
1abde35
Try to resolve problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
9ba8540
Try to resolve problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
37a125a
Try to resolve problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
44badf9
Try to resolve problem with NoClassDefFoundError
alexandersazonof Apr 26, 2022
803b6bd
Fix problem with one more result from db query
alexandersazonof Apr 27, 2022
82759c7
Add more logs for HardWorkParser
alexandersazonof Apr 28, 2022
a2e23b3
Add logs for check NullPointerException
alexandersazonof Apr 28, 2022
7c18d10
Add additional info from harvest api
alexandersazonof Apr 28, 2022
4a22b03
Add new endpoint with harvest vault info
alexandersazonof Apr 28, 2022
016aa4b
Remove unused feature
alexandersazonof Apr 28, 2022
846e437
Merge pull request #161 from harvestfi/calculate_profit
belbix Apr 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<web3j>4.8.4</web3j>
<spring.wiremock.version>3.0.0</spring.wiremock.version>
<argLine>-Duser.language=en -Duser.region=US</argLine>
<start-class>pro.belbix.ethparser.Application</start-class>
</properties>
Expand All @@ -41,6 +42,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>1.1.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>5.2.8.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down Expand Up @@ -70,7 +81,14 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependency>

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-wiremock</artifactId>
<version>${spring.wiremock.version}</version>
<scope>test</scope>
</dependency>

<!--******************************************-->

Expand Down Expand Up @@ -270,7 +288,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-dependencies</id>
Expand Down
27 changes: 27 additions & 0 deletions scripts/application.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,30 @@ spring:

server:
port: 4142

external:
covalenthq:
url: https://api.covalenthq.com/v1/
key: ckey_91bf3242cc5042599af1094b965
harvest:
url: https://api-ui.harvest.finance/
key: 41e90ced-d559-4433-b390-af424fdc76d6


task:
pool:
fixedRate: 3600000 # Each hour
enable: false
vault:
fixedRate: 3600000 # Each hour
enable: false
uni-pair:
fixedRate: 86400000 # Everyday
enable: false
transaction:
max-thread-size: 30
fixedRate: 86400000 # Everyday
enable: false
info:
fixedRate: 3600000 # Each hour
enable: false
4 changes: 2 additions & 2 deletions scripts/run_app/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rm -rf ./lib
rm -rf ./logs
rm ethparser.jar
mvn install -Dmaven.test.skip=true -f ./../../pom.xml
mvn install -Dmaven.test.skip=true -Dmaven.version=1.0.1 -f ./../../pom.xml
cp -R ./../../dist/lib/. ./lib
cp ./../../dist/ethparser.jar ./ethparser.jar
java -Xmx1g -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Dspring.config.location=./../application.yml,run_config.yml -cp ethparser.jar pro.belbix.ethparser.Application
java -Xmx4g -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Dspring.config.location=./../application.yml,run_config.yml -cp ethparser.jar pro.belbix.ethparser.Application
Loading