1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Update src/balancer/OceanPool.ts

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
This commit is contained in:
Alex Coseru 2020-10-05 23:39:06 +03:00 committed by GitHub
parent 7f48fe2ccb
commit d4c8ac0684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ export class OceanPool extends Pool {
return null return null
} }
if (parseFloat(fee) > 0.1) { if (parseFloat(fee) > 0.1) {
console.error('Swap fee to high') console.error('Swap fee too high. The maximum allowed swapFee is 0.1 (10%).')
return null return null
} }
if (parseFloat(weight) > 9 || parseFloat(weight) < 1) { if (parseFloat(weight) > 9 || parseFloat(weight) < 1) {