Allow users to chain staking calls after claimNOTE

This commit is contained in:
Tianjie Wei 2022-04-13 21:01:59 -07:00
parent b7d60ca8ae
commit c04d3978da
2 changed files with 8 additions and 4 deletions

View File

@ -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));

View File

@ -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]
}
]