Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkolpakov committed Mar 26, 2024
1 parent 15e6ed3 commit 833020c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions modules/blockChain/contractAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ export const AtcStethAllowedRecipientsRegistry: ChainAddressMap = {
}

export const Stonks: ChainAddressListMap = {
[CHAINS.Mainnet]: [
'0x3e2D251275A92a8169A3B17A2C49016e2de492a7',
'0xf4F6A03E3dbf0aA22083be80fDD340943d275Ea5',
'0x7C2a1E25cA6D778eCaEBC8549371062487846aAF',
'0x79f5E20996abE9f6a48AF6f9b13f1E55AED6f06D',
'0x8Ba6D367D15Ebc52f3eBBdb4a8710948C0918d42',
'0x281e6BB6F26A94250aCEb24396a8E4190726C97e',
'0x64B6aF9A108dCdF470E48e4c0147127F26221A7C',
'0x278f7B6CBB3Cc37374e6a40bDFEBfff08f65A5C7',
'0x2B5a3944A654439379B206DE999639508bA2e850',
],
[CHAINS.Goerli]: [],
[CHAINS.Holesky]: [
'0x7949418C1C8a45b453114568fD3a5526100Eb0D9',
Expand Down
2 changes: 1 addition & 1 deletion modules/stonks/hooks/useOrderData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function useOrderData(orderAddress: string) {
)
const buyAmount = formatValue(formatUnits(buyAmountBn, buyTokenDecimals))

const hasBalance = sellTokenBalance.gt(0)
const hasBalance = sellTokenBalance.gt(10) // Covers steth wei issue

const isRecoverable = isExpired && hasBalance

Expand Down
4 changes: 2 additions & 2 deletions modules/stonks/utils/createOffChainOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type OffChainOrderPayload = {
partiallyFillable: false // as in Order.sol
sellTokenBalance: 'erc20' // as in Order.sol
buyTokenBalance: 'erc20' // as in Order.sol
appData: string // keccak256("LIDO_DOES_STONKS")
appData: string // keccak256("{}")
signingScheme: 'eip1271'
signature: '0x'
} & OffChainOrderInput
Expand All @@ -29,7 +29,7 @@ export const createOffChainOrder = async (
) => {
const payload: OffChainOrderPayload = {
...order,
appData: utils.keccak256(utils.toUtf8Bytes('LIDO_DOES_STONKS')),
appData: utils.keccak256(utils.toUtf8Bytes('{}')),
feeAmount: '0',
partiallyFillable: false,
from: order.address,
Expand Down

0 comments on commit 833020c

Please sign in to comment.