Versie 0.2.0
This commit is contained in:
commit
e77d8fd373
495 files changed
+81026
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// Generated, do not edit. sha256:030fb9043ec0bb393242bec50f13de9146004cd70907c5230c0bfc59d06b39b7
|
||||
const empty = v => v == null || String(v).trim() === '';
|
||||
|
||||
export function compoundsViaBalance(s) {
|
||||
return s.rateKind === 'fixed' && empty(s.principalAmount)
|
||||
&& !empty(s.principalAssetId) && Number(s.principalAssetId) === Number(s.payoutAssetId);
|
||||
}
|
||||
|
||||
export function looksLikeDepositWithoutPrincipal(s) {
|
||||
return compoundsViaBalance(s) && !empty(s.endsOn);
|
||||
}
|
||||
Reference in new issue
Block a user