-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update rewards estimator to deal with changes in the TzKT api
- Loading branch information
Showing
11 changed files
with
2,315 additions
and
940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
135 changes: 135 additions & 0 deletions
135
Tests/KukaiCoreSwiftTests/Stubs/tzkt_baker-config-tz1S5WxdZR5f9NzsPXhr7L9L1vrEb5spZFur.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
{ | ||
"address": "tz1S5WxdZR5f9NzsPXhr7L9L1vrEb5spZFur", | ||
"name": "Baking Benjamins", | ||
"logo": "https://services.tzkt.io/v1/avatars/tz1S5WxdZR5f9NzsPXhr7L9L1vrEb5spZFur", | ||
"balance": 63510.843938, | ||
"stakingBalance": 626388.733175, | ||
"stakingCapacity": 635108.43938, | ||
"maxStakingBalance": 635108.43938, | ||
"freeSpace": 8719.706205000053, | ||
"fee": 0.2, | ||
"minDelegation": 0.01, | ||
"payoutDelay": 1, | ||
"payoutPeriod": 1, | ||
"openForDelegation": true, | ||
"estimatedRoi": 0.049882, | ||
"serviceType": "tezos_only", | ||
"serviceHealth": "active", | ||
"payoutTiming": "stable", | ||
"payoutAccuracy": "inaccurate", | ||
"audit": "6064b1d379aafa90137ab034", | ||
"insuranceCoverage": 0, | ||
"config": { | ||
"address": "tz1S5WxdZR5f9NzsPXhr7L9L1vrEb5spZFur", | ||
"fee": [ | ||
{ | ||
"cycle": 438, | ||
"value": 0.2 | ||
}, | ||
{ | ||
"cycle": 334, | ||
"value": 0.1 | ||
}, | ||
{ | ||
"cycle": 246, | ||
"value": 0.06 | ||
}, | ||
{ | ||
"cycle": 0, | ||
"value": 0.08 | ||
} | ||
], | ||
"minDelegation": [ | ||
{ | ||
"cycle": 569, | ||
"value": 0.01 | ||
}, | ||
{ | ||
"cycle": 278, | ||
"value": 1 | ||
}, | ||
{ | ||
"cycle": 244, | ||
"value": 50 | ||
}, | ||
{ | ||
"cycle": 0, | ||
"value": 100 | ||
} | ||
], | ||
"payoutFee": [ | ||
{ | ||
"cycle": 0, | ||
"value": false | ||
} | ||
], | ||
"payoutDelay": [ | ||
{ | ||
"cycle": 245, | ||
"value": 1 | ||
}, | ||
{ | ||
"cycle": 244, | ||
"value": 2 | ||
}, | ||
{ | ||
"cycle": 243, | ||
"value": 3 | ||
}, | ||
{ | ||
"cycle": 242, | ||
"value": 4 | ||
}, | ||
{ | ||
"cycle": 241, | ||
"value": 5 | ||
}, | ||
{ | ||
"cycle": 0, | ||
"value": 6 | ||
} | ||
], | ||
"payoutPeriod": [ | ||
{ | ||
"cycle": 0, | ||
"value": 1 | ||
} | ||
], | ||
"minPayout": [ | ||
{ | ||
"cycle": 0, | ||
"value": 0 | ||
} | ||
], | ||
"rewardStruct": [ | ||
{ | ||
"cycle": 0, | ||
"value": 21 | ||
} | ||
], | ||
"payoutRatio": [ | ||
{ | ||
"cycle": 0, | ||
"value": 666 | ||
} | ||
], | ||
"maxStakingThreshold": [ | ||
{ | ||
"cycle": 0, | ||
"value": 1 | ||
} | ||
], | ||
"openForDelegation": [ | ||
{ | ||
"cycle": 0, | ||
"value": true | ||
} | ||
], | ||
"allocationFee": [ | ||
{ | ||
"cycle": 0, | ||
"value": true | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.