mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
revert if dtAMount is too low
This commit is contained in:
parent
6960390720
commit
9124160137
@ -90,6 +90,10 @@ export class OceanPool extends Pool {
|
||||
this.logger.error('ERROR: Swap fee too high. The maximum allowed swapFee is 10%')
|
||||
return null
|
||||
}
|
||||
if (parseFloat(dtAmount) < 2) {
|
||||
this.logger.error('ERROR: Amount of DT is too low')
|
||||
return null
|
||||
}
|
||||
if (parseFloat(dtWeight) > 9 || parseFloat(dtWeight) < 1) {
|
||||
this.logger.error('ERROR: Weight out of bounds (min 1, max9)')
|
||||
return null
|
||||
|
Loading…
x
Reference in New Issue
Block a user