mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Allow users to chain staking calls after claimNOTE
This commit is contained in:
parent
b7d60ca8ae
commit
c04d3978da
|
@ -681,12 +681,14 @@ abstract contract NotionalResolver is Events, Helpers {
|
|||
function mintSNoteFromETH(
|
||||
uint256 noteAmount,
|
||||
uint256 ethAmount,
|
||||
uint256 minBPT
|
||||
uint256 minBPT,
|
||||
uint256 getId
|
||||
)
|
||||
external
|
||||
payable
|
||||
returns (string memory _eventName, bytes memory _eventParam)
|
||||
{
|
||||
noteAmount = getUint(getId, noteAmount);
|
||||
if (noteAmount == type(uint256).max)
|
||||
noteAmount = note.balanceOf(address(this));
|
||||
|
||||
|
@ -708,12 +710,14 @@ abstract contract NotionalResolver is Events, Helpers {
|
|||
function mintSNoteFromWETH(
|
||||
uint256 noteAmount,
|
||||
uint256 wethAmount,
|
||||
uint256 minBPT
|
||||
uint256 minBPT,
|
||||
uint256 getId
|
||||
)
|
||||
external
|
||||
payable
|
||||
returns (string memory _eventName, bytes memory _eventParam)
|
||||
{
|
||||
noteAmount = getUint(getId, noteAmount);
|
||||
if (noteAmount == type(uint256).max)
|
||||
noteAmount = note.balanceOf(address(this));
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ const mintSNoteFromETH = async (
|
|||
{
|
||||
connector: "NOTIONAL-TEST-A",
|
||||
method: "mintSNoteFromETH",
|
||||
args: [noteAmount, ethAmount, minBPT]
|
||||
args: [noteAmount, ethAmount, minBPT, 0]
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -232,7 +232,7 @@ const mintSNoteFromWETH = async (
|
|||
{
|
||||
connector: "NOTIONAL-TEST-A",
|
||||
method: "mintSNoteFromWETH",
|
||||
args: [noteAmount, wethAmount, minBPT]
|
||||
args: [noteAmount, wethAmount, minBPT, 0]
|
||||
}
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user