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:
parent
7f48fe2ccb
commit
d4c8ac0684
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user