Skip to content

Commit

Permalink
feat Insufficient warning for provideCT, editCT, claimCT #56
Browse files Browse the repository at this point in the history
add notice WARING
  • Loading branch information
zzooppii committed Aug 14, 2024
1 parent fad7d9f commit 3b0dfa5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contracts/L1/L1CrossTrade.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ contract L1CrossTrade is ProxyStorage, AccessibleCommon, L1CrossTradeStorage, Re
}

/// @notice Provides information that matches the hash value requested in L2
/// %% WARING %%
/// Even if it does not match the request made in L2,
/// the transaction in L1 will pass if only the hash value of the input information matches. (In this case, you will lose your assets in L1.)
/// Please be aware of double-check the request made in L2 and execute the provideCT in L1.
/// @param _l1token Address of requested l1token
/// @param _l2token Address of requested l2token
/// @param _requestor requester's address
Expand Down Expand Up @@ -261,6 +265,10 @@ contract L1CrossTrade is ProxyStorage, AccessibleCommon, L1CrossTradeStorage, Re
}

/// @notice Cancels the request requested by the requester.
/// %% WARING %%
/// Even if it does not match the request made in L2,
/// the transaction in L1 will pass if only the hash value of the input information matches.
/// Please be aware of double-check the request made in L2 and execute the cancel in L1.
/// @param _l1token Address of requested l1token
/// @param _l2token Address of requested l2token
/// @param _totalAmount Total amount requested by l2
Expand Down Expand Up @@ -362,6 +370,10 @@ contract L1CrossTrade is ProxyStorage, AccessibleCommon, L1CrossTradeStorage, Re
}

/// @notice This is a function that changes the value that the requester wants to receive.
/// %% WARING %%
/// Even if it does not match the request made in L2,
/// the transaction in L1 will pass if only the hash value of the input information matches.
/// Please be aware of double-check the request made in L2 and execute the editFee in L1.
/// @param _l1token Address of requested l1token
/// @param _l2token Address of requested l2token
/// @param _totalAmount Total amount requested by l2
Expand Down

0 comments on commit 3b0dfa5

Please sign in to comment.