package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev
# Functions
CalculateNewCapacityList calculates the new capacity list for the given current `tvl` and `limitParams“.
GetBaseline returns the current capacity baseline for the given limiter.
Parse the denom from the Recv Packet that will be used by the rate limit module The denom that the rate limiter will use for a RECEIVE packet depends on whether it was a `source` or `sink`, explained here: https://github.com/cosmos/ibc-go/blob/04531d83bf/modules/apps/transfer/keeper/relay.go#L23-L54
If the chain is acting as a SINK: Add on the dYdX Chain port and channel and hash it Ex1: uusdc sent from Noble to dYdX Packet Denom: uusdc -> Add Prefix: transfer/channel-0/uusdc -> Hash: ibc/..
Parse the denom from the Send Packet that will be used by the rate limit module The denom that the rate limiter will use for a SEND packet depends on whether it was a NATIVE token (e.g.
Parses the following information from a packet needed for transfer rate limit: - channelID - denom - amount
This function is similar to Stride's implementation below except it ignores the `Sender` and `Receiver` information.
UnpackAcknowledgementResponseForTransfer unmarshals Acknowledgements for IBC transfers, determines the status of the acknowledgement (success or failure).