h-agent-swap 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/agent-swap.js +9 -0
package/package.json
CHANGED
package/src/agent-swap.js
CHANGED
|
@@ -317,6 +317,15 @@ class AgentSwap extends HI {
|
|
|
317
317
|
return signature
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
async rewardAmount({ token,amount }) {
|
|
321
|
+
let symbol = new HERC20({
|
|
322
|
+
...this.network,
|
|
323
|
+
contract:token
|
|
324
|
+
})
|
|
325
|
+
let result = await symbol.transfer(this.contract,amount)
|
|
326
|
+
return result
|
|
327
|
+
}
|
|
328
|
+
|
|
320
329
|
|
|
321
330
|
|
|
322
331
|
async withdrawal({ signType, token, amount, sign, deadline = 0 }) {
|